Merge tag 'linux-kselftest-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 23:32:53 +0000 (15:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 23:32:53 +0000 (15:32 -0800)
Pull Kselftest update from Shuah Khan:
 "This update consists of:

   - fixes to several existing tests from Stafford Horne

   - cpufreq tests from Viresh Kumar

   - Selftest build and install fixes from Bamvor Jian Zhang and Michael
     Ellerman

   - Fixes to protection-keys tests from Dave Hansen

   - Warning fixes from Shuah Khan"

* tag 'linux-kselftest-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (28 commits)
  selftests/powerpc: Fix remaining fallout from recent changes
  selftests/powerpc: Fix the clean rule since recent changes
  selftests: Fix the .S and .S -> .o rules
  selftests: Fix the .c linking rule
  selftests: Fix selftests build to just build, not run tests
  selftests, x86, protection_keys: fix wrong offset in siginfo
  selftests, x86, protection_keys: fix uninitialized variable warning
  selftest: cpufreq: Update MAINTAINERS file
  selftest: cpufreq: Add special tests
  selftest: cpufreq: Add support to test cpufreq modules
  selftest: cpufreq: Add suspend/resume/hibernate support
  selftest: cpufreq: Add support for cpufreq tests
  selftests: Add intel_pstate to TARGETS
  selftests/intel_pstate: Update makefile to match new style
  selftests/intel_pstate: Fix warning on loop index overflow
  cpupower: Restore format of frequency-info limit
  selftests/futex: Add headers to makefile dependencies
  selftests/futex: Add stdio used for logging
  selftests: x86 protection_keys remove dead code
  selftests: x86 protection_keys fix unused variable compile warnings
  ...

1  2 
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/vm/Makefile
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/protection_keys.c

diff --cc MAINTAINERS
Simple merge
Simple merge
index c7816fe60feb92b2e53ab7f1c1e2a560de34c866,058351b0694fddd7d0c56163c77498297e4be4f6..4b498265dae6dc3b52b35818453f2c895809b323
@@@ -1,26 -1,7 +1,20 @@@
 -CFLAGS += -Wall -O2 -I../../../../usr/include
 +LIBDIR := ../../../lib
 +BPFOBJ := $(LIBDIR)/bpf/bpf.o
  
 -TEST_GEN_PROGS = test_verifier test_maps test_lru_map
 +CFLAGS += -Wall -O2 -lcap -I../../../include/uapi -I$(LIBDIR)
 +
- test_objs = test_verifier test_tag test_maps test_lru_map test_lpm_map
++TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map
  
- TEST_PROGS := $(test_objs) test_kmod.sh
- TEST_FILES := $(test_objs)
+ TEST_PROGS := test_kmod.sh
  
- all: $(test_objs)
 +.PHONY: all clean force
 +
 +# force a rebuild of BPFOBJ when its dependencies are updated
 +force:
 +
 +$(BPFOBJ): force
 +      $(MAKE) -C $(dir $(BPFOBJ))
 +
 +$(test_objs): $(BPFOBJ)
 +
  include ../lib.mk
- clean:
-       $(RM) $(test_objs)
index 900dfaf810510d6578a01d287b010c6f61b0b1c4,983140e68661fc948057bf1a43adbedd0f2217ff..4cff7e7ddcc47b80ef30a06a779ea45dae5a5f3e
@@@ -1,33 -1,24 +1,33 @@@
  # Makefile for vm selftests
  
  CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
- BINARIES = compaction_test
- BINARIES += hugepage-mmap
- BINARIES += hugepage-shm
- BINARIES += map_hugetlb
- BINARIES += mlock2-tests
- BINARIES += on-fault-limit
- BINARIES += thuge-gen
- BINARIES += transhuge-stress
- BINARIES += userfaultfd
- BINARIES += userfaultfd_hugetlb
- BINARIES += userfaultfd_shmem
- BINARIES += mlock-random-test
- all: $(BINARIES)
- %: %.c
-       $(CC) $(CFLAGS) -o $@ $^ -lrt
- userfaultfd: userfaultfd.c ../../../../usr/include/linux/kernel.h
-       $(CC) $(CFLAGS) -O2 -o $@ $< -lpthread
- userfaultfd_hugetlb: userfaultfd.c ../../../../usr/include/linux/kernel.h
+ LDLIBS = -lrt
+ TEST_GEN_FILES = compaction_test
+ TEST_GEN_FILES += hugepage-mmap
+ TEST_GEN_FILES += hugepage-shm
+ TEST_GEN_FILES += map_hugetlb
+ TEST_GEN_FILES += mlock2-tests
+ TEST_GEN_FILES += on-fault-limit
+ TEST_GEN_FILES += thuge-gen
+ TEST_GEN_FILES += transhuge-stress
+ TEST_GEN_FILES += userfaultfd
++TEST_GEN_FILES += userfaultfd_hugetlb
++TEST_GEN_FILES += userfaultfd_shmem
+ TEST_GEN_FILES += mlock-random-test
+ TEST_PROGS := run_vmtests
+ include ../lib.mk
+ $(OUTPUT)/userfaultfd: LDLIBS += -lpthread ../../../../usr/include/linux/kernel.h
++
++$(OUTPUT)/userfaultfd_hugetlb: userfaultfd.c ../../../../usr/include/linux/kernel.h
 +      $(CC) $(CFLAGS) -DHUGETLB_TEST -O2 -o $@ $< -lpthread
 +
- userfaultfd_shmem: userfaultfd.c ../../../../usr/include/linux/kernel.h
++$(OUTPUT)/userfaultfd_shmem: userfaultfd.c  ../../../../usr/include/linux/kernel.h
 +      $(CC) $(CFLAGS) -DSHMEM_TEST -O2 -o $@ $< -lpthread
 +
- mlock-random-test: mlock-random-test.c
-       $(CC) $(CFLAGS) -o $@ $< -lcap
+ $(OUTPUT)/mlock-random-test: LDLIBS += -lcap
  
  ../../../../usr/include/linux/kernel.h:
        make -C ../../../.. headers_install
Simple merge