Skip to content

Commit

Permalink
Merge tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pu…
Browse files Browse the repository at this point in the history
…b/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
  ...
  • Loading branch information
torvalds committed Oct 14, 2016
2 parents 50cff89 + fecf861 commit 5d89d9f
Show file tree
Hide file tree
Showing 105 changed files with 202 additions and 186 deletions.
3 changes: 2 additions & 1 deletion Documentation/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
4 changes: 1 addition & 3 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
subdir-y := accounting auxdisplay blackfin \
filesystems filesystems ia64 laptops mic misc-devices \
networking pcmcia prctl ptp timers vDSO watchdog
subdir-y :=
7 changes: 0 additions & 7 deletions Documentation/accounting/Makefile

This file was deleted.

6 changes: 3 additions & 3 deletions Documentation/accounting/delay-accounting.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand Down
2 changes: 0 additions & 2 deletions Documentation/arm/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions Documentation/auxdisplay/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/auxdisplay/cfag12864b
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 0 additions & 4 deletions Documentation/blackfin/00-INDEX
Original file line number Diff line number Diff line change
@@ -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
5 changes: 0 additions & 5 deletions Documentation/blackfin/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions Documentation/filesystems/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions Documentation/filesystems/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions Documentation/ia64/Makefile

This file was deleted.

5 changes: 3 additions & 2 deletions Documentation/kselftest.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions Documentation/laptops/00-INDEX
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions Documentation/laptops/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/laptops/laptop-mode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion Documentation/mic/Makefile

This file was deleted.

21 changes: 0 additions & 21 deletions Documentation/mic/mpssd/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/misc-devices/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions Documentation/misc-devices/mei/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions Documentation/networking/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion Documentation/networking/Makefile

This file was deleted.

14 changes: 0 additions & 14 deletions Documentation/networking/timestamping/Makefile

This file was deleted.

7 changes: 0 additions & 7 deletions Documentation/pcmcia/Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions Documentation/pcmcia/devicetable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 0 additions & 10 deletions Documentation/prctl/Makefile

This file was deleted.

8 changes: 0 additions & 8 deletions Documentation/ptp/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions Documentation/spi/00-INDEX
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 0 additions & 4 deletions Documentation/timers/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions Documentation/timers/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/timers/hpet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 0 additions & 17 deletions Documentation/vDSO/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/watchdog/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions Documentation/watchdog/src/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/watchdog/watchdog-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/watchdog/wdt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
Expand Down Expand Up @@ -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/

Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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---
Expand Down
9 changes: 0 additions & 9 deletions lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
File renamed without changes.
9 changes: 9 additions & 0 deletions samples/auxdisplay/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include

PROGS := cfag12864b-example

all: $(PROGS)

clean:
rm -fr $(PROGS)
File renamed without changes.
1 change: 1 addition & 0 deletions samples/blackfin/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_SAMPLE_BLACKFIN_GPTIMERS) += gptimers-example.o
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions samples/mei/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CC := $(CROSS_COMPILE)gcc
CFLAGS := -I../../usr/include

PROGS := mei-amt-version

all: $(PROGS)

clean:
rm -fr $(PROGS)
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 5d89d9f

Please sign in to comment.