Parcourir la source

Merge tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest

Pull kselftest updates from Shuah Khan:
 "This update consists of:

   - Fixes and improvements to existing tests

   - Moving code from Documentation to selftests, samples, and tools:

     * Moves dnotify_test, prctl, ptp, vDSO, ia64, watchdog, and
       networking tests from Documentation to selftests.

     * Moves mic/mpssd, misc-devices/mei, timers, watchdog, auxdisplay,
       and blackfin examples from Documentation to samples.

     * Moves accounting, laptops/dslm, and pcmcia/crc32hash tools from
       Documentation to tools.

     * Deletes BUILD_DOCSRC and its dependencies"

* tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (21 commits)
  selftests/futex: Check ANSI terminal color support
  Doc: update 00-INDEX files to reflect the runnable code move
  samples: move blackfin gptimers-example from Documentation
  tools: move pcmcia crc32hash tool from Documentation
  tools: move laptops dslm tool from Documentation
  tools: move accounting tool from Documentation
  samples: move auxdisplay example code from Documentation
  samples: move watchdog example code from Documentation
  samples: move timers example code from Documentation
  samples: move misc-devices/mei example code from Documentation
  samples: move mic/mpssd example code from Documentation
  selftests: Move networking/timestamping from Documentation
  selftests: move watchdog tests from Documentation/watchdog
  selftests: move ia64 tests from Documentation/ia64
  selftests: move vDSO tests from Documentation/vDSO
  selftests: move ptp tests from Documentation/ptp
  selftests: move prctl tests from Documentation/prctl
  selftests: move dnotify_test from Documentation/filesystems
  selftests/timers: Add missing error code assignment before test
  selftests/zram: replace ZRAM_LZ4_COMPRESS
  ...
Linus Torvalds il y a 8 ans
Parent
commit
5d89d9f502
100 fichiers modifiés avec 192 ajouts et 185 suppressions
  1. 2 1
      Documentation/00-INDEX
  2. 1 3
      Documentation/Makefile
  3. 0 7
      Documentation/accounting/Makefile
  4. 3 3
      Documentation/accounting/delay-accounting.txt
  5. 0 2
      Documentation/arm/00-INDEX
  6. 0 7
      Documentation/auxdisplay/Makefile
  7. 1 1
      Documentation/auxdisplay/cfag12864b
  8. 0 4
      Documentation/blackfin/00-INDEX
  9. 0 5
      Documentation/blackfin/Makefile
  10. 0 2
      Documentation/filesystems/00-INDEX
  11. 0 5
      Documentation/filesystems/Makefile
  12. 0 5
      Documentation/ia64/Makefile
  13. 3 2
      Documentation/kselftest.txt
  14. 0 4
      Documentation/laptops/00-INDEX
  15. 0 5
      Documentation/laptops/Makefile
  16. 1 1
      Documentation/laptops/laptop-mode.txt
  17. 0 1
      Documentation/mic/Makefile
  18. 0 21
      Documentation/mic/mpssd/Makefile
  19. 0 1
      Documentation/misc-devices/Makefile
  20. 0 5
      Documentation/misc-devices/mei/Makefile
  21. 0 2
      Documentation/networking/00-INDEX
  22. 0 1
      Documentation/networking/Makefile
  23. 0 14
      Documentation/networking/timestamping/Makefile
  24. 0 7
      Documentation/pcmcia/Makefile
  25. 2 2
      Documentation/pcmcia/devicetable.txt
  26. 0 10
      Documentation/prctl/Makefile
  27. 0 8
      Documentation/ptp/Makefile
  28. 0 2
      Documentation/spi/00-INDEX
  29. 0 4
      Documentation/timers/00-INDEX
  30. 0 5
      Documentation/timers/Makefile
  31. 1 1
      Documentation/timers/hpet.txt
  32. 0 17
      Documentation/vDSO/Makefile
  33. 0 1
      Documentation/watchdog/Makefile
  34. 0 5
      Documentation/watchdog/src/Makefile
  35. 1 1
      Documentation/watchdog/watchdog-api.txt
  36. 1 1
      Documentation/watchdog/wdt.txt
  37. 2 0
      MAINTAINERS
  38. 0 3
      Makefile
  39. 1 1
      drivers/media/v4l2-core/Kconfig
  40. 0 9
      lib/Kconfig.debug
  41. 6 0
      samples/Kconfig
  42. 1 1
      samples/Makefile
  43. 0 0
      samples/auxdisplay/.gitignore
  44. 9 0
      samples/auxdisplay/Makefile
  45. 0 0
      samples/auxdisplay/cfag12864b-example.c
  46. 1 0
      samples/blackfin/Makefile
  47. 0 0
      samples/blackfin/gptimers-example.c
  48. 0 0
      samples/mei/.gitignore
  49. 9 0
      samples/mei/Makefile
  50. 0 0
      samples/mei/TODO
  51. 0 0
      samples/mei/mei-amt-version.c
  52. 0 0
      samples/mic/mpssd/.gitignore
  53. 27 0
      samples/mic/mpssd/Makefile
  54. 0 0
      samples/mic/mpssd/micctrl
  55. 0 0
      samples/mic/mpssd/mpss
  56. 0 0
      samples/mic/mpssd/mpssd.c
  57. 0 0
      samples/mic/mpssd/mpssd.h
  58. 0 0
      samples/mic/mpssd/sysfs.c
  59. 0 0
      samples/timers/.gitignore
  60. 15 0
      samples/timers/Makefile
  61. 0 0
      samples/timers/hpet_example.c
  62. 0 1
      samples/watchdog/.gitignore
  63. 8 0
      samples/watchdog/Makefile
  64. 0 0
      samples/watchdog/watchdog-simple.c
  65. 0 0
      tools/accounting/.gitignore
  66. 9 0
      tools/accounting/Makefile
  67. 0 0
      tools/accounting/getdelays.c
  68. 0 0
      tools/laptop/dslm/.gitignore
  69. 9 0
      tools/laptop/dslm/Makefile
  70. 0 0
      tools/laptop/dslm/dslm.c
  71. 0 0
      tools/pcmcia/.gitignore
  72. 9 0
      tools/pcmcia/Makefile
  73. 0 0
      tools/pcmcia/crc32hash.c
  74. 0 0
      tools/testing/selftests/filesystems/.gitignore
  75. 7 0
      tools/testing/selftests/filesystems/Makefile
  76. 0 0
      tools/testing/selftests/filesystems/dnotify_test.c
  77. 1 1
      tools/testing/selftests/futex/functional/run.sh
  78. 1 1
      tools/testing/selftests/futex/run.sh
  79. 0 0
      tools/testing/selftests/ia64/.gitignore
  80. 8 0
      tools/testing/selftests/ia64/Makefile
  81. 0 0
      tools/testing/selftests/ia64/aliasing-test.c
  82. 0 0
      tools/testing/selftests/networking/timestamping/.gitignore
  83. 8 0
      tools/testing/selftests/networking/timestamping/Makefile
  84. 0 0
      tools/testing/selftests/networking/timestamping/hwtstamp_config.c
  85. 0 0
      tools/testing/selftests/networking/timestamping/timestamping.c
  86. 0 0
      tools/testing/selftests/networking/timestamping/txtimestamp.c
  87. 0 0
      tools/testing/selftests/prctl/.gitignore
  88. 15 0
      tools/testing/selftests/prctl/Makefile
  89. 0 0
      tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c
  90. 0 0
      tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c
  91. 0 0
      tools/testing/selftests/prctl/disable-tsc-test.c
  92. 0 0
      tools/testing/selftests/ptp/.gitignore
  93. 8 0
      tools/testing/selftests/ptp/Makefile
  94. 0 0
      tools/testing/selftests/ptp/testptp.c
  95. 0 0
      tools/testing/selftests/ptp/testptp.mk
  96. 2 2
      tools/testing/selftests/timers/posix_timers.c
  97. 0 0
      tools/testing/selftests/vDSO/.gitignore
  98. 20 0
      tools/testing/selftests/vDSO/Makefile
  99. 0 0
      tools/testing/selftests/vDSO/parse_vdso.c
  100. 0 0
      tools/testing/selftests/vDSO/vdso_standalone_test_x86.c

+ 2 - 1
Documentation/00-INDEX

@@ -46,7 +46,8 @@ IRQ.txt
 Intel-IOMMU.txt
 	- basic info on the Intel IOMMU virtualization support.
 Makefile
-	- some files in Documentation dir are actually sample code to build
+	- This file does nothing. Removing it breaks make htmldocs and
+	  make distclean.
 ManagementStyle
 	- how to (attempt to) manage kernel hackers.
 RCU/

+ 1 - 3
Documentation/Makefile

@@ -1,3 +1 @@
-subdir-y := accounting auxdisplay blackfin \
-	filesystems filesystems ia64 laptops mic misc-devices \
-	networking pcmcia prctl ptp timers vDSO watchdog
+subdir-y :=

+ 0 - 7
Documentation/accounting/Makefile

@@ -1,7 +0,0 @@
-# List of programs to build
-hostprogs-y := getdelays
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_getdelays.o += -I$(objtree)/usr/include

+ 3 - 3
Documentation/accounting/delay-accounting.txt

@@ -54,9 +54,9 @@ are sent to userspace without requiring a command. If it is the last exiting
 task of a thread group, the per-tgid statistics are also sent. More details
 are given in the taskstats interface description.
 
-The getdelays.c userspace utility in this directory allows simple commands to
-be run and the corresponding delay statistics to be displayed. It also serves
-as an example of using the taskstats interface.
+The getdelays.c userspace utility in tools/accounting directory allows simple
+commands to be run and the corresponding delay statistics to be displayed. It
+also serves as an example of using the taskstats interface.
 
 Usage
 -----

+ 0 - 2
Documentation/arm/00-INDEX

@@ -8,8 +8,6 @@ Interrupts
 	- ARM Interrupt subsystem documentation
 IXP4xx
 	- Intel IXP4xx Network processor.
-Makefile
-	- Build sourcefiles as part of the Documentation-build for arm
 Netwinder
 	- Netwinder specific documentation
 Porting

+ 0 - 7
Documentation/auxdisplay/Makefile

@@ -1,7 +0,0 @@
-# List of programs to build
-hostprogs-y := cfag12864b-example
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_cfag12864b-example.o += -I$(objtree)/usr/include

+ 1 - 1
Documentation/auxdisplay/cfag12864b

@@ -101,5 +101,5 @@ Although the LCD won't get updated until the next refresh time arrives.
 Also, you can mmap the framebuffer: open & mmap, munmap & close...
 which is the best option for most uses.
 
-Check Documentation/auxdisplay/cfag12864b-example.c
+Check samples/auxdisplay/cfag12864b-example.c
 for a real working userspace complete program with usage examples.

+ 0 - 4
Documentation/blackfin/00-INDEX

@@ -1,10 +1,6 @@
 00-INDEX
 	- This file
-Makefile
-	- Makefile for gptimers example file.
 bfin-gpio-notes.txt
 	- Notes in developing/using bfin-gpio driver.
 bfin-spi-notes.txt
 	- Notes for using bfin spi bus driver.
-gptimers-example.c
-	- gptimers example

+ 0 - 5
Documentation/blackfin/Makefile

@@ -1,5 +0,0 @@
-ifneq ($(CONFIG_BLACKFIN),)
-ifneq ($(CONFIG_BFIN_GPTIMERS),)
-obj-m := gptimers-example.o
-endif
-endif

+ 0 - 2
Documentation/filesystems/00-INDEX

@@ -2,8 +2,6 @@
 	- this file (info on some of the filesystems supported by linux).
 Locking
 	- info on locking rules as they pertain to Linux VFS.
-Makefile
-	- Makefile for building the filsystems-part of DocBook.
 9p.txt
 	- 9p (v9fs) is an implementation of the Plan 9 remote fs protocol.
 adfs.txt

+ 0 - 5
Documentation/filesystems/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-y := dnotify_test
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 0 - 5
Documentation/ia64/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-y := aliasing-test
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 3 - 2
Documentation/kselftest.txt

@@ -1,8 +1,9 @@
 Linux Kernel Selftests
 
 The kernel contains a set of "self tests" under the tools/testing/selftests/
-directory. These are intended to be small unit tests to exercise individual
-code paths in the kernel.
+directory. These are intended to be small tests to exercise individual code
+paths in the kernel. Tests are intended to be run after building, installing
+and booting a kernel.
 
 On some systems, hot-plug tests could hang forever waiting for cpu and
 memory to be ready to be offlined. A special hot-plug target is created

+ 0 - 4
Documentation/laptops/00-INDEX

@@ -1,13 +1,9 @@
 00-INDEX
 	- This file
-Makefile
-	- Makefile for building dslm example program.
 asus-laptop.txt
 	- information on the Asus Laptop Extras driver.
 disk-shock-protection.txt
 	- information on hard disk shock protection.
-dslm.c
-	- Simple Disk Sleep Monitor program
 laptop-mode.txt
 	- how to conserve battery power using laptop-mode.
 sony-laptop.txt

+ 0 - 5
Documentation/laptops/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-y := dslm
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 1 - 1
Documentation/laptops/laptop-mode.txt

@@ -779,4 +779,4 @@ Monitoring tool
 ---------------
 
 Bartek Kania submitted this, it can be used to measure how much time your disk
-spends spun up/down.  See Documentation/laptops/dslm.c
+spends spun up/down.  See tools/laptop/dslm/dslm.c

+ 0 - 1
Documentation/mic/Makefile

@@ -1 +0,0 @@
-subdir-y := mpssd

+ 0 - 21
Documentation/mic/mpssd/Makefile

@@ -1,21 +0,0 @@
-ifndef CROSS_COMPILE
-# List of programs to build
-hostprogs-$(CONFIG_X86_64) := mpssd
-
-mpssd-objs := mpssd.o sysfs.o
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include
-
-ifdef DEBUG
-HOSTCFLAGS += -DDEBUG=$(DEBUG)
-endif
-
-HOSTLOADLIBES_mpssd := -lpthread
-
-install:
-	install mpssd /usr/sbin/mpssd
-	install micctrl /usr/sbin/micctrl
-endif

+ 0 - 1
Documentation/misc-devices/Makefile

@@ -1 +0,0 @@
-subdir-y := mei

+ 0 - 5
Documentation/misc-devices/mei/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-y := mei-amt-version
-HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 0 - 2
Documentation/networking/00-INDEX

@@ -10,8 +10,6 @@ LICENSE.qlge
 	- GPLv2 for QLogic Linux qlge NIC Driver
 LICENSE.qlcnic
 	- GPLv2 for QLogic Linux qlcnic NIC Driver
-Makefile
-	- Makefile for docsrc.
 PLIP.txt
 	- PLIP: The Parallel Line Internet Protocol device driver
 README.ipw2100

+ 0 - 1
Documentation/networking/Makefile

@@ -1 +0,0 @@
-subdir-y := timestamping

+ 0 - 14
Documentation/networking/timestamping/Makefile

@@ -1,14 +0,0 @@
-# To compile, from the source root
-#
-#    make headers_install
-#    make M=documentation
-
-# List of programs to build
-hostprogs-y := hwtstamp_config timestamping txtimestamp
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include
-HOSTCFLAGS_txtimestamp.o += -I$(objtree)/usr/include
-HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include

+ 0 - 7
Documentation/pcmcia/Makefile

@@ -1,7 +0,0 @@
-# List of programs to build
-hostprogs-y := crc32hash
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_crc32hash.o += -I$(objtree)/usr/include

+ 2 - 2
Documentation/pcmcia/devicetable.txt

@@ -27,7 +27,7 @@ pcmcia:m0149cC1ABf06pfn00fn00pa725B842DpbF1EFEE84pc0877B627pd00000000
 The hex value after "pa" is the hash of product ID string 1, after "pb" for
 string 2 and so on.
 
-Alternatively, you can use crc32hash (see Documentation/pcmcia/crc32hash.c)
+Alternatively, you can use crc32hash (see tools/pcmcia/crc32hash.c)
 to determine the crc32 hash.  Simply pass the string you want to evaluate
 as argument to this program, e.g.:
-$ ./crc32hash "Dual Speed"
+$ tools/pcmcia/crc32hash "Dual Speed"

+ 0 - 10
Documentation/prctl/Makefile

@@ -1,10 +0,0 @@
-ifndef CROSS_COMPILE
-# List of programs to build
-hostprogs-$(CONFIG_X86) := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include
-HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include
-HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include
-endif

+ 0 - 8
Documentation/ptp/Makefile

@@ -1,8 +0,0 @@
-# List of programs to build
-hostprogs-y := testptp
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include
-HOSTLOADLIBES_testptp := -lrt

+ 0 - 2
Documentation/spi/00-INDEX

@@ -1,7 +1,5 @@
 00-INDEX
 	- this file.
-Makefile
-	- Makefile for the example sourcefiles.
 butterfly
 	- AVR Butterfly SPI driver overview and pin configuration.
 ep93xx_spi

+ 0 - 4
Documentation/timers/00-INDEX

@@ -4,12 +4,8 @@ highres.txt
 	- High resolution timers and dynamic ticks design notes
 hpet.txt
 	- High Precision Event Timer Driver for Linux
-hpet_example.c
-	- sample hpet timer test program
 hrtimers.txt
 	- subsystem for high-resolution kernel timers
-Makefile
-	- Build and link hpet_example
 NO_HZ.txt
 	- Summary of the different methods for the scheduler clock-interrupts management.
 timekeeping.txt

+ 0 - 5
Documentation/timers/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-$(CONFIG_X86) := hpet_example
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 1 - 1
Documentation/timers/hpet.txt

@@ -25,4 +25,4 @@ arch/x86/kernel/hpet.c.
 
 The driver provides a userspace API which resembles the API found in the
 RTC driver framework.  An example user space program is provided in
-file:Documentation/timers/hpet_example.c
+file:samples/timers/hpet_example.c

+ 0 - 17
Documentation/vDSO/Makefile

@@ -1,17 +0,0 @@
-ifndef CROSS_COMPILE
-# vdso_test won't build for glibc < 2.16, so disable it
-# hostprogs-y := vdso_test
-hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
-vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
-vdso_test-objs := parse_vdso.o vdso_test.o
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)
-
-HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
-HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
-HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
-ifeq ($(CONFIG_X86_32),y)
-HOSTLOADLIBES_vdso_standalone_test_x86 += -lgcc_s
-endif
-endif

+ 0 - 1
Documentation/watchdog/Makefile

@@ -1 +0,0 @@
-subdir-y := src

+ 0 - 5
Documentation/watchdog/src/Makefile

@@ -1,5 +0,0 @@
-# List of programs to build
-hostprogs-y := watchdog-simple watchdog-test
-
-# Tell kbuild to always build the programs
-always := $(hostprogs-y)

+ 1 - 1
Documentation/watchdog/watchdog-api.txt

@@ -37,7 +37,7 @@ activates as soon as /dev/watchdog is opened and will reboot unless
 the watchdog is pinged within a certain time, this time is called the
 timeout or margin.  The simplest way to ping the watchdog is to write
 some data to the device.  So a very simple watchdog daemon would look
-like this source file:  see Documentation/watchdog/src/watchdog-simple.c
+like this source file:  see samples/watchdog/watchdog-simple.c
 
 A more advanced driver could for example check that a HTTP server is
 still responding before doing the write call to ping the watchdog.

+ 1 - 1
Documentation/watchdog/wdt.txt

@@ -47,4 +47,4 @@ The external event interfaces on the WDT boards are not currently supported.
 Minor numbers are however allocated for it.
 
 
-Example Watchdog Driver:  see Documentation/watchdog/src/watchdog-simple.c
+Example Watchdog Driver:  see samples/watchdog/watchdog-simple.c

+ 2 - 0
MAINTAINERS

@@ -6442,6 +6442,7 @@ F:	include/linux/mei_cl_bus.h
 F:	drivers/misc/mei/*
 F:	drivers/watchdog/mei_wdt.c
 F:	Documentation/misc-devices/mei/*
+F:	samples/mei/*
 
 INTEL MIC DRIVERS (mic)
 M:	Sudeep Dutt <sudeep.dutt@intel.com>
@@ -9383,6 +9384,7 @@ W:	http://lists.infradead.org/mailman/listinfo/linux-pcmcia
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git
 S:	Maintained
 F:	Documentation/pcmcia/
+F:	tools/pcmcia/
 F:	drivers/pcmcia/
 F:	include/pcmcia/
 

+ 0 - 3
Makefile

@@ -936,9 +936,6 @@ vmlinux_prereq: $(vmlinux-deps) FORCE
 ifdef CONFIG_HEADERS_CHECK
 	$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
 endif
-ifdef CONFIG_BUILD_DOCSRC
-	$(Q)$(MAKE) $(build)=Documentation
-endif
 ifdef CONFIG_GDB_SCRIPTS
 	$(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
 endif

+ 1 - 1
drivers/media/v4l2-core/Kconfig

@@ -27,7 +27,7 @@ config VIDEO_FIXED_MINOR_RANGES
 
 config VIDEO_PCI_SKELETON
 	tristate "Skeleton PCI V4L2 driver"
-	depends on PCI && BUILD_DOCSRC
+	depends on PCI
 	depends on VIDEO_V4L2 && VIDEOBUF2_CORE
 	depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG
 	---help---

+ 0 - 9
lib/Kconfig.debug

@@ -1857,15 +1857,6 @@ config PROVIDE_OHCI1394_DMA_INIT
 
 	  See Documentation/debugging-via-ohci1394.txt for more information.
 
-config BUILD_DOCSRC
-	bool "Build targets in Documentation/ tree"
-	depends on HEADERS_CHECK
-	help
-	  This option attempts to build objects from the source files in the
-	  kernel Documentation/ tree.
-
-	  Say N if you are unsure.
-
 config DMA_API_DEBUG
 	bool "Enable debugging of DMA-API usage"
 	depends on HAVE_DMA_API_DEBUG

+ 6 - 0
samples/Kconfig

@@ -99,4 +99,10 @@ config SAMPLE_SECCOMP
 	  Build samples of seccomp filters using various methods of
 	  BPF filter construction.
 
+config SAMPLE_BLACKFIN_GPTIMERS
+	tristate "Build blackfin gptimers sample code -- loadable modules only"
+	depends on BLACKFIN && BFIN_GPTIMERS && m
+	help
+	  Build samples of blackfin gptimers sample module.
+
 endif # SAMPLES

+ 1 - 1
samples/Makefile

@@ -2,4 +2,4 @@
 
 obj-$(CONFIG_SAMPLES)	+= kobject/ kprobes/ trace_events/ livepatch/ \
 			   hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
-			   configfs/ connector/ v4l/ trace_printk/
+			   configfs/ connector/ v4l/ trace_printk/ blackfin/

+ 0 - 0
Documentation/auxdisplay/.gitignore → samples/auxdisplay/.gitignore


+ 9 - 0
samples/auxdisplay/Makefile

@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := cfag12864b-example
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)

+ 0 - 0
Documentation/auxdisplay/cfag12864b-example.c → samples/auxdisplay/cfag12864b-example.c


+ 1 - 0
samples/blackfin/Makefile

@@ -0,0 +1 @@
+obj-$(CONFIG_SAMPLE_BLACKFIN_GPTIMERS) += gptimers-example.o

+ 0 - 0
Documentation/blackfin/gptimers-example.c → samples/blackfin/gptimers-example.c


+ 0 - 0
Documentation/misc-devices/mei/.gitignore → samples/mei/.gitignore


+ 9 - 0
samples/mei/Makefile

@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := mei-amt-version
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)

+ 0 - 0
Documentation/misc-devices/mei/TODO → samples/mei/TODO


+ 0 - 0
Documentation/misc-devices/mei/mei-amt-version.c → samples/mei/mei-amt-version.c


+ 0 - 0
Documentation/mic/mpssd/.gitignore → samples/mic/mpssd/.gitignore


+ 27 - 0
samples/mic/mpssd/Makefile

@@ -0,0 +1,27 @@
+ifndef CROSS_COMPILE
+uname_M := $(shell uname -m 2>/dev/null || echo not)
+ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
+
+ifeq ($(ARCH),x86)
+
+PROGS := mpssd
+CC = $(CROSS_COMPILE)gcc
+CFLAGS := -I../../../usr/include -I../../../tools/include
+
+ifdef DEBUG
+CFLAGS += -DDEBUG=$(DEBUG)
+endif
+
+all: $(PROGS)
+mpssd: mpssd.c sysfs.c
+	$(CC) $(CFLAGS) mpssd.c sysfs.c -o mpssd -lpthread
+
+install:
+	install mpssd /usr/sbin/mpssd
+	install micctrl /usr/sbin/micctrl
+
+clean:
+	rm -fr $(PROGS)
+
+endif
+endif

+ 0 - 0
Documentation/mic/mpssd/micctrl → samples/mic/mpssd/micctrl


+ 0 - 0
Documentation/mic/mpssd/mpss → samples/mic/mpssd/mpss


+ 0 - 0
Documentation/mic/mpssd/mpssd.c → samples/mic/mpssd/mpssd.c


+ 0 - 0
Documentation/mic/mpssd/mpssd.h → samples/mic/mpssd/mpssd.h


+ 0 - 0
Documentation/mic/mpssd/sysfs.c → samples/mic/mpssd/sysfs.c


+ 0 - 0
Documentation/timers/.gitignore → samples/timers/.gitignore


+ 15 - 0
samples/timers/Makefile

@@ -0,0 +1,15 @@
+ifndef CROSS_COMPILE
+uname_M := $(shell uname -m 2>/dev/null || echo not)
+ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
+
+ifeq ($(ARCH),x86)
+CC := $(CROSS_COMPILE)gcc
+PROGS := hpet_example
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)
+
+endif
+endif

+ 0 - 0
Documentation/timers/hpet_example.c → samples/timers/hpet_example.c


+ 0 - 1
Documentation/watchdog/src/.gitignore → samples/watchdog/.gitignore

@@ -1,2 +1 @@
 watchdog-simple
-watchdog-test

+ 8 - 0
samples/watchdog/Makefile

@@ -0,0 +1,8 @@
+CC := $(CROSS_COMPILE)gcc
+PROGS := watchdog-simple
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)
+

+ 0 - 0
Documentation/watchdog/src/watchdog-simple.c → samples/watchdog/watchdog-simple.c


+ 0 - 0
Documentation/accounting/.gitignore → tools/accounting/.gitignore


+ 9 - 0
tools/accounting/Makefile

@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := getdelays
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)

+ 0 - 0
Documentation/accounting/getdelays.c → tools/accounting/getdelays.c


+ 0 - 0
Documentation/laptops/.gitignore → tools/laptop/dslm/.gitignore


+ 9 - 0
tools/laptop/dslm/Makefile

@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := dslm
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)

+ 0 - 0
Documentation/laptops/dslm.c → tools/laptop/dslm/dslm.c


+ 0 - 0
Documentation/pcmcia/.gitignore → tools/pcmcia/.gitignore


+ 9 - 0
tools/pcmcia/Makefile

@@ -0,0 +1,9 @@
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -I../../usr/include
+
+PROGS := crc32hash
+
+all: $(PROGS)
+
+clean:
+	rm -fr $(PROGS)

+ 0 - 0
Documentation/pcmcia/crc32hash.c → tools/pcmcia/crc32hash.c


+ 0 - 0
Documentation/filesystems/.gitignore → tools/testing/selftests/filesystems/.gitignore


+ 7 - 0
tools/testing/selftests/filesystems/Makefile

@@ -0,0 +1,7 @@
+TEST_PROGS := dnotify_test
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/filesystems/dnotify_test.c → tools/testing/selftests/filesystems/dnotify_test.c


+ 1 - 1
tools/testing/selftests/futex/functional/run.sh

@@ -24,7 +24,7 @@
 
 # Test for a color capable console
 if [ -z "$USE_COLOR" ]; then
-    tput setf 7
+    tput setf 7 || tput setaf 7
     if [ $? -eq 0 ]; then
         USE_COLOR=1
         tput sgr0

+ 1 - 1
tools/testing/selftests/futex/run.sh

@@ -23,7 +23,7 @@
 
 # Test for a color capable shell and pass the result to the subdir scripts
 USE_COLOR=0
-tput setf 7
+tput setf 7 || tput setaf 7
 if [ $? -eq 0 ]; then
     USE_COLOR=1
     tput sgr0

+ 0 - 0
Documentation/ia64/.gitignore → tools/testing/selftests/ia64/.gitignore


+ 8 - 0
tools/testing/selftests/ia64/Makefile

@@ -0,0 +1,8 @@
+TEST_PROGS := aliasing-test
+
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/ia64/aliasing-test.c → tools/testing/selftests/ia64/aliasing-test.c


+ 0 - 0
Documentation/networking/timestamping/.gitignore → tools/testing/selftests/networking/timestamping/.gitignore


+ 8 - 0
tools/testing/selftests/networking/timestamping/Makefile

@@ -0,0 +1,8 @@
+TEST_PROGS := hwtstamp_config timestamping txtimestamp
+
+all: $(TEST_PROGS)
+
+include ../../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/networking/timestamping/hwtstamp_config.c → tools/testing/selftests/networking/timestamping/hwtstamp_config.c


+ 0 - 0
Documentation/networking/timestamping/timestamping.c → tools/testing/selftests/networking/timestamping/timestamping.c


+ 0 - 0
Documentation/networking/timestamping/txtimestamp.c → tools/testing/selftests/networking/timestamping/txtimestamp.c


+ 0 - 0
Documentation/prctl/.gitignore → tools/testing/selftests/prctl/.gitignore


+ 15 - 0
tools/testing/selftests/prctl/Makefile

@@ -0,0 +1,15 @@
+ifndef CROSS_COMPILE
+uname_M := $(shell uname -m 2>/dev/null || echo not)
+ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
+
+ifeq ($(ARCH),x86)
+TEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
+		disable-tsc-test
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)
+endif
+endif

+ 0 - 0
Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c → tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c


+ 0 - 0
Documentation/prctl/disable-tsc-on-off-stress-test.c → tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c


+ 0 - 0
Documentation/prctl/disable-tsc-test.c → tools/testing/selftests/prctl/disable-tsc-test.c


+ 0 - 0
Documentation/ptp/.gitignore → tools/testing/selftests/ptp/.gitignore


+ 8 - 0
tools/testing/selftests/ptp/Makefile

@@ -0,0 +1,8 @@
+TEST_PROGS := testptp
+LDLIBS += -lrt
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+clean:
+	rm -fr $(TEST_PROGS)

+ 0 - 0
Documentation/ptp/testptp.c → tools/testing/selftests/ptp/testptp.c


+ 0 - 0
Documentation/ptp/testptp.mk → tools/testing/selftests/ptp/testptp.mk


+ 2 - 2
tools/testing/selftests/timers/posix_timers.c

@@ -122,7 +122,7 @@ static int check_itimer(int which)
 	else if (which == ITIMER_REAL)
 		idle_loop();
 
-	gettimeofday(&end, NULL);
+	err = gettimeofday(&end, NULL);
 	if (err < 0) {
 		perror("Can't call gettimeofday()\n");
 		return -1;
@@ -175,7 +175,7 @@ static int check_timer_create(int which)
 
 	user_loop();
 
-	gettimeofday(&end, NULL);
+	err = gettimeofday(&end, NULL);
 	if (err < 0) {
 		perror("Can't call gettimeofday()\n");
 		return -1;

+ 0 - 0
Documentation/vDSO/.gitignore → tools/testing/selftests/vDSO/.gitignore


+ 20 - 0
tools/testing/selftests/vDSO/Makefile

@@ -0,0 +1,20 @@
+ifndef CROSS_COMPILE
+CFLAGS := -std=gnu99
+CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector
+ifeq ($(CONFIG_X86_32),y)
+LDLIBS += -lgcc_s
+endif
+
+TEST_PROGS := vdso_test vdso_standalone_test_x86
+
+all: $(TEST_PROGS)
+vdso_test: parse_vdso.c vdso_test.c
+vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c
+	$(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \
+		vdso_standalone_test_x86.c parse_vdso.c \
+		-o vdso_standalone_test_x86
+
+include ../lib.mk
+clean:
+	rm -fr $(TEST_PROGS)
+endif

+ 0 - 0
Documentation/vDSO/parse_vdso.c → tools/testing/selftests/vDSO/parse_vdso.c


+ 0 - 0
Documentation/vDSO/vdso_standalone_test_x86.c → tools/testing/selftests/vDSO/vdso_standalone_test_x86.c


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff