Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: tools/testing/selftests/vm/Makefile between commit: b0d449922eb8 ("mm/hmm/test: add selftests for HMM") from the hmm tree and commit: 3a07caa68f66 ("selftests: vm: pkeys: fix multilib builds for x86") from the akpm-current tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. -- Cheers, Stephen Rothwell diff --cc tools/testing/selftests/vm/Makefile index c6eb5305a0f6,d7eae41be628..000000000000 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@@ -34,8 -58,55 +59,57 @@@ TEST_FILES := test_vmalloc.s KSFT_KHDR_INSTALL := 1 include ../lib.mk + ifeq ($(ARCH),x86_64) + BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32)) + BINARIES_64 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_64)) + + define gen-target-rule-32 + $(1) $(1)_32: $(OUTPUT)/$(1)_32 + .PHONY: $(1) $(1)_32 + endef + + define gen-target-rule-64 + $(1) $(1)_64: $(OUTPUT)/$(1)_64 + .PHONY: $(1) $(1)_64 + endef + + ifeq ($(CAN_BUILD_I386),1) + $(BINARIES_32): CFLAGS += -m32 + $(BINARIES_32): LDLIBS += -lrt -ldl -lm + $(BINARIES_32): %_32: %.c + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@ + $(foreach t,$(TARGETS),$(eval $(call gen-target-rule-32,$(t)))) + endif + + ifeq ($(CAN_BUILD_X86_64),1) + $(BINARIES_64): CFLAGS += -m64 + $(BINARIES_64): LDLIBS += -lrt -ldl + $(BINARIES_64): %_64: %.c + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@ + $(foreach t,$(TARGETS),$(eval $(call gen-target-rule-64,$(t)))) + endif + + # x86_64 users should be encouraged to install 32-bit libraries + ifeq ($(CAN_BUILD_I386)$(CAN_BUILD_X86_64),01) + all: warn_32bit_failure + + warn_32bit_failure: + @echo "Warning: you seem to have a broken 32-bit build" 2>&1; \ + echo "environment. This will reduce test coverage of 64-bit" 2>&1; \ + echo "kernels. If you are using a Debian-like distribution," 2>&1; \ + echo "try:"; 2>&1; \ + echo ""; \ + echo " apt-get install gcc-multilib libc6-i386 libc6-dev-i386"; \ + echo ""; \ + echo "If you are using a Fedora-like distribution, try:"; \ + echo ""; \ + echo " yum install glibc-devel.*i686"; \ + exit 0; + endif + endif + +$(OUTPUT)/hmm-tests: LDLIBS += -lhugetlbfs -lpthread + $(OUTPUT)/userfaultfd: LDLIBS += -lpthread $(OUTPUT)/mlock-random-test: LDLIBS += -lcap
Attachment:
pgp9Wo2TtHmJg.pgp
Description: OpenPGP digital signature