aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/.gitignore7
-rw-r--r--Documentation/DMA-API-HOWTO.txt6
-rw-r--r--Documentation/DocBook/media/v4l/common.xml2
-rw-r--r--Documentation/Makefile7
-rw-r--r--Documentation/accounting/Makefile3
-rw-r--r--Documentation/arm/Makefile1
-rw-r--r--Documentation/arm/SH-Mobile/.gitignore1
-rw-r--r--Documentation/arm/SH-Mobile/Makefile11
-rw-r--r--Documentation/arm/SH-Mobile/vrl4.c7
-rw-r--r--Documentation/auxdisplay/Makefile3
-rw-r--r--Documentation/blackfin/Makefile7
-rw-r--r--Documentation/filesystems/.gitignore1
-rw-r--r--Documentation/filesystems/Makefile3
-rw-r--r--Documentation/ia64/Makefile3
-rw-r--r--Documentation/laptops/.gitignore2
-rw-r--r--Documentation/laptops/Makefile5
-rw-r--r--Documentation/mic/Makefile1
-rw-r--r--Documentation/mic/mpssd/Makefile24
-rw-r--r--Documentation/mic/mpssd/mpssd.c5
-rw-r--r--Documentation/misc-devices/Makefile1
-rw-r--r--Documentation/misc-devices/mei/Makefile3
-rw-r--r--Documentation/networking/.gitignore0
-rw-r--r--Documentation/networking/Makefile8
-rw-r--r--Documentation/networking/timestamping/.gitignore1
-rw-r--r--Documentation/networking/timestamping/Makefile8
-rw-r--r--Documentation/pcmcia/Makefile3
-rw-r--r--Documentation/prctl/.gitignore3
-rw-r--r--Documentation/prctl/Makefile8
-rw-r--r--Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c11
-rw-r--r--Documentation/prctl/disable-tsc-on-off-stress-test.c7
-rw-r--r--Documentation/prctl/disable-tsc-test.c5
-rw-r--r--Documentation/ptp/.gitignore1
-rw-r--r--Documentation/ptp/Makefile8
-rw-r--r--Documentation/ptp/testptp.c6
-rw-r--r--Documentation/ptp/testptp.mk33
-rw-r--r--Documentation/spi/Makefile3
-rw-r--r--Documentation/this_cpu_ops.txt2
-rw-r--r--Documentation/timers/.gitignore1
-rw-r--r--Documentation/timers/Makefile3
-rw-r--r--Documentation/vDSO/.gitignore2
-rw-r--r--Documentation/vDSO/Makefile12
-rw-r--r--Documentation/video4linux/.gitignore1
-rw-r--r--Documentation/video4linux/Makefile1
-rw-r--r--Documentation/watchdog/Makefile1
-rw-r--r--Documentation/watchdog/src/Makefile3
-rw-r--r--MAINTAINERS1
-rw-r--r--Makefile2
-rw-r--r--drivers/media/rc/keymaps/Kconfig2
-rw-r--r--drivers/media/v4l2-core/Kconfig9
-rw-r--r--tools/include/tools/endian.h56
50 files changed, 168 insertions, 136 deletions
diff --git a/Documentation/.gitignore b/Documentation/.gitignore
deleted file mode 100644
index bcd907b4141f..000000000000
--- a/Documentation/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
1filesystems/dnotify_test
2laptops/dslm
3timers/hpet_example
4vm/hugepage-mmap
5vm/hugepage-shm
6vm/map_hugetlb
7
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt
index dcbbe3602d78..0f7afb2bb442 100644
--- a/Documentation/DMA-API-HOWTO.txt
+++ b/Documentation/DMA-API-HOWTO.txt
@@ -531,7 +531,7 @@ To map a single region, you do:
531 size_t size = buffer->len; 531 size_t size = buffer->len;
532 532
533 dma_handle = dma_map_single(dev, addr, size, direction); 533 dma_handle = dma_map_single(dev, addr, size, direction);
534 if (dma_mapping_error(dma_handle)) { 534 if (dma_mapping_error(dev, dma_handle)) {
535 /* 535 /*
536 * reduce current DMA mapping usage, 536 * reduce current DMA mapping usage,
537 * delay and try again later or 537 * delay and try again later or
@@ -588,7 +588,7 @@ Specifically:
588 size_t size = buffer->len; 588 size_t size = buffer->len;
589 589
590 dma_handle = dma_map_page(dev, page, offset, size, direction); 590 dma_handle = dma_map_page(dev, page, offset, size, direction);
591 if (dma_mapping_error(dma_handle)) { 591 if (dma_mapping_error(dev, dma_handle)) {
592 /* 592 /*
593 * reduce current DMA mapping usage, 593 * reduce current DMA mapping usage,
594 * delay and try again later or 594 * delay and try again later or
@@ -689,7 +689,7 @@ to use the dma_sync_*() interfaces.
689 dma_addr_t mapping; 689 dma_addr_t mapping;
690 690
691 mapping = dma_map_single(cp->dev, buffer, len, DMA_FROM_DEVICE); 691 mapping = dma_map_single(cp->dev, buffer, len, DMA_FROM_DEVICE);
692 if (dma_mapping_error(dma_handle)) { 692 if (dma_mapping_error(cp->dev, dma_handle)) {
693 /* 693 /*
694 * reduce current DMA mapping usage, 694 * reduce current DMA mapping usage,
695 * delay and try again later or 695 * delay and try again later or
diff --git a/Documentation/DocBook/media/v4l/common.xml b/Documentation/DocBook/media/v4l/common.xml
index 71f6bf9e735e..8b5e014224d6 100644
--- a/Documentation/DocBook/media/v4l/common.xml
+++ b/Documentation/DocBook/media/v4l/common.xml
@@ -110,7 +110,7 @@ makes no provisions to find these related devices. Some really
110complex devices use the Media Controller (see <xref linkend="media_controller" />) 110complex devices use the Media Controller (see <xref linkend="media_controller" />)
111which can be used for this purpose. But most drivers do not use it, 111which can be used for this purpose. But most drivers do not use it,
112and while some code exists that uses sysfs to discover related devices 112and while some code exists that uses sysfs to discover related devices
113(see libmedia_dev in the <ulink url="http://git.linuxtv.org/v4l-utils/">v4l-utils</ulink> 113(see libmedia_dev in the <ulink url="http://git.linuxtv.org/cgit.cgi/v4l-utils.git/">v4l-utils</ulink>
114git repository), there is no library yet that can provide a single API towards 114git repository), there is no library yet that can provide a single API towards
115both Media Controller-based devices and devices that do not use the Media Controller. 115both Media Controller-based devices and devices that do not use the Media Controller.
116If you want to work on this please write to the linux-media mailing list: &v4l-ml;.</para> 116If you want to work on this please write to the linux-media mailing list: &v4l-ml;.</para>
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 31d302bc5863..6883a1b9b351 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -1,3 +1,4 @@
1obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ 1subdir-y := accounting arm auxdisplay blackfin connector \
2 filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \ 2 filesystems filesystems ia64 laptops mic misc-devices \
3 pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/ 3 networking pcmcia prctl ptp spi timers vDSO video4linux \
4 watchdog
diff --git a/Documentation/accounting/Makefile b/Documentation/accounting/Makefile
index 31929eb875b1..7e232cb6fd7d 100644
--- a/Documentation/accounting/Makefile
+++ b/Documentation/accounting/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := getdelays 2hostprogs-y := getdelays
6 3
diff --git a/Documentation/arm/Makefile b/Documentation/arm/Makefile
new file mode 100644
index 000000000000..732c77050cff
--- /dev/null
+++ b/Documentation/arm/Makefile
@@ -0,0 +1 @@
subdir-y := SH-Mobile
diff --git a/Documentation/arm/SH-Mobile/.gitignore b/Documentation/arm/SH-Mobile/.gitignore
new file mode 100644
index 000000000000..c928dbf3cc88
--- /dev/null
+++ b/Documentation/arm/SH-Mobile/.gitignore
@@ -0,0 +1 @@
vrl4
diff --git a/Documentation/arm/SH-Mobile/Makefile b/Documentation/arm/SH-Mobile/Makefile
index 8771d832cf8c..bca8a7ef6bbe 100644
--- a/Documentation/arm/SH-Mobile/Makefile
+++ b/Documentation/arm/SH-Mobile/Makefile
@@ -1,8 +1,7 @@
1BIN := vrl4 1# List of programs to build
2hostprogs-y := vrl4
2 3
3.PHONY: all 4# Tell kbuild to always build the programs
4all: $(BIN) 5always := $(hostprogs-y)
5 6
6.PHONY: clean 7HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
7clean:
8 rm -f *.o $(BIN)
diff --git a/Documentation/arm/SH-Mobile/vrl4.c b/Documentation/arm/SH-Mobile/vrl4.c
index e8a191358ad2..f4cd8ad4e720 100644
--- a/Documentation/arm/SH-Mobile/vrl4.c
+++ b/Documentation/arm/SH-Mobile/vrl4.c
@@ -34,6 +34,7 @@
34#include <stdint.h> 34#include <stdint.h>
35#include <stdio.h> 35#include <stdio.h>
36#include <errno.h> 36#include <errno.h>
37#include <tools/endian.h>
37 38
38struct hdr { 39struct hdr {
39 uint32_t magic1; 40 uint32_t magic1;
@@ -77,7 +78,7 @@ struct hdr {
77 78
78#define ROUND_UP(x) ((x + ALIGN - 1) & ~(ALIGN - 1)) 79#define ROUND_UP(x) ((x + ALIGN - 1) & ~(ALIGN - 1))
79 80
80ssize_t do_read(int fd, void *buf, size_t count) 81static ssize_t do_read(int fd, void *buf, size_t count)
81{ 82{
82 size_t offset = 0; 83 size_t offset = 0;
83 ssize_t l; 84 ssize_t l;
@@ -98,7 +99,7 @@ ssize_t do_read(int fd, void *buf, size_t count)
98 return offset; 99 return offset;
99} 100}
100 101
101ssize_t do_write(int fd, const void *buf, size_t count) 102static ssize_t do_write(int fd, const void *buf, size_t count)
102{ 103{
103 size_t offset = 0; 104 size_t offset = 0;
104 ssize_t l; 105 ssize_t l;
@@ -117,7 +118,7 @@ ssize_t do_write(int fd, const void *buf, size_t count)
117 return offset; 118 return offset;
118} 119}
119 120
120ssize_t write_zero(int fd, size_t len) 121static ssize_t write_zero(int fd, size_t len)
121{ 122{
122 size_t i = len; 123 size_t i = len;
123 124
diff --git a/Documentation/auxdisplay/Makefile b/Documentation/auxdisplay/Makefile
index 51fe23332c81..ada4dac99ef4 100644
--- a/Documentation/auxdisplay/Makefile
+++ b/Documentation/auxdisplay/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := cfag12864b-example 2hostprogs-y := cfag12864b-example
6 3
diff --git a/Documentation/blackfin/Makefile b/Documentation/blackfin/Makefile
index 773dbb103f1c..c7e6c99bad81 100644
--- a/Documentation/blackfin/Makefile
+++ b/Documentation/blackfin/Makefile
@@ -1,6 +1,3 @@
1ifneq ($(CONFIG_BLACKFIN),)
1obj-m := gptimers-example.o 2obj-m := gptimers-example.o
2 3endif
3all: modules
4
5modules clean:
6 $(MAKE) -C ../.. SUBDIRS=$(PWD) $@
diff --git a/Documentation/filesystems/.gitignore b/Documentation/filesystems/.gitignore
new file mode 100644
index 000000000000..31d6e426b6d4
--- /dev/null
+++ b/Documentation/filesystems/.gitignore
@@ -0,0 +1 @@
dnotify_test
diff --git a/Documentation/filesystems/Makefile b/Documentation/filesystems/Makefile
index a5dd114da14f..13483d192ebb 100644
--- a/Documentation/filesystems/Makefile
+++ b/Documentation/filesystems/Makefile
@@ -1,5 +1,4 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built. 1subdir-y := configfs
2obj- := dummy.o
3 2
4# List of programs to build 3# List of programs to build
5hostprogs-y := dnotify_test 4hostprogs-y := dnotify_test
diff --git a/Documentation/ia64/Makefile b/Documentation/ia64/Makefile
index b75db69ec483..d493163affe7 100644
--- a/Documentation/ia64/Makefile
+++ b/Documentation/ia64/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := aliasing-test 2hostprogs-y := aliasing-test
6 3
diff --git a/Documentation/laptops/.gitignore b/Documentation/laptops/.gitignore
new file mode 100644
index 000000000000..da2bd065f4bc
--- /dev/null
+++ b/Documentation/laptops/.gitignore
@@ -0,0 +1,2 @@
1dslm
2freefall
diff --git a/Documentation/laptops/Makefile b/Documentation/laptops/Makefile
index 5cb144af3c09..2b0fa5edf1d3 100644
--- a/Documentation/laptops/Makefile
+++ b/Documentation/laptops/Makefile
@@ -1,8 +1,5 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := dslm 2hostprogs-y := dslm freefall
6 3
7# Tell kbuild to always build the programs 4# Tell kbuild to always build the programs
8always := $(hostprogs-y) 5always := $(hostprogs-y)
diff --git a/Documentation/mic/Makefile b/Documentation/mic/Makefile
new file mode 100644
index 000000000000..a191d453badf
--- /dev/null
+++ b/Documentation/mic/Makefile
@@ -0,0 +1 @@
subdir-y := mpssd
diff --git a/Documentation/mic/mpssd/Makefile b/Documentation/mic/mpssd/Makefile
index eb860a7d152e..0f3156888048 100644
--- a/Documentation/mic/mpssd/Makefile
+++ b/Documentation/mic/mpssd/Makefile
@@ -1,19 +1,19 @@
1# 1# List of programs to build
2# Makefile - Intel MIC User Space Tools. 2hostprogs-y := mpssd
3# Copyright(c) 2013, Intel Corporation. 3
4# 4mpssd-objs := mpssd.o sysfs.o
5
6# Tell kbuild to always build the programs
7always := $(hostprogs-y)
8
9HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include
10
5ifdef DEBUG 11ifdef DEBUG
6CFLAGS += $(USERWARNFLAGS) -I. -g -Wall -DDEBUG=$(DEBUG) 12HOSTCFLAGS += -DDEBUG=$(DEBUG)
7else
8CFLAGS += $(USERWARNFLAGS) -I. -g -Wall
9endif 13endif
10 14
11mpssd: mpssd.o sysfs.o 15HOSTLOADLIBES_mpssd := -lpthread
12 $(CC) $(CFLAGS) -o $@ $^ -lpthread
13 16
14install: 17install:
15 install mpssd /usr/sbin/mpssd 18 install mpssd /usr/sbin/mpssd
16 install micctrl /usr/sbin/micctrl 19 install micctrl /usr/sbin/micctrl
17
18clean:
19 rm -f mpssd *.o
diff --git a/Documentation/mic/mpssd/mpssd.c b/Documentation/mic/mpssd/mpssd.c
index 4d17487d5ad9..3c5c379fc29d 100644
--- a/Documentation/mic/mpssd/mpssd.c
+++ b/Documentation/mic/mpssd/mpssd.c
@@ -41,6 +41,7 @@
41#include "mpssd.h" 41#include "mpssd.h"
42#include <linux/mic_ioctl.h> 42#include <linux/mic_ioctl.h>
43#include <linux/mic_common.h> 43#include <linux/mic_common.h>
44#include <tools/endian.h>
44 45
45static void init_mic(struct mic_info *mic); 46static void init_mic(struct mic_info *mic);
46 47
@@ -1476,9 +1477,9 @@ set_cmdline(struct mic_info *mic)
1476 1477
1477 len = snprintf(buffer, PATH_MAX, 1478 len = snprintf(buffer, PATH_MAX,
1478 "clocksource=tsc highres=off nohz=off "); 1479 "clocksource=tsc highres=off nohz=off ");
1479 len += snprintf(buffer + len, PATH_MAX, 1480 len += snprintf(buffer + len, PATH_MAX - len,
1480 "cpufreq_on;corec6_off;pc3_off;pc6_off "); 1481 "cpufreq_on;corec6_off;pc3_off;pc6_off ");
1481 len += snprintf(buffer + len, PATH_MAX, 1482 len += snprintf(buffer + len, PATH_MAX - len,
1482 "ifcfg=static;address,172.31.%d.1;netmask,255.255.255.0", 1483 "ifcfg=static;address,172.31.%d.1;netmask,255.255.255.0",
1483 mic->id); 1484 mic->id);
1484 1485
diff --git a/Documentation/misc-devices/Makefile b/Documentation/misc-devices/Makefile
new file mode 100644
index 000000000000..e2b7aa4c9e21
--- /dev/null
+++ b/Documentation/misc-devices/Makefile
@@ -0,0 +1 @@
subdir-y := mei
diff --git a/Documentation/misc-devices/mei/Makefile b/Documentation/misc-devices/mei/Makefile
index 00e8c3e836ff..d758047d1b6d 100644
--- a/Documentation/misc-devices/mei/Makefile
+++ b/Documentation/misc-devices/mei/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := mei-amt-version 2hostprogs-y := mei-amt-version
6HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include 3HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
diff --git a/Documentation/networking/.gitignore b/Documentation/networking/.gitignore
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/Documentation/networking/.gitignore
+++ /dev/null
diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile
index 0aa1ac98fc2b..4c5d7c485439 100644
--- a/Documentation/networking/Makefile
+++ b/Documentation/networking/Makefile
@@ -1,7 +1 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built. subdir-y := timestamping
2obj- := dummy.o
3
4# Tell kbuild to always build the programs
5always := $(hostprogs-y)
6
7obj-m := timestamping/
diff --git a/Documentation/networking/timestamping/.gitignore b/Documentation/networking/timestamping/.gitignore
index a380159765ce..9e69e982fb38 100644
--- a/Documentation/networking/timestamping/.gitignore
+++ b/Documentation/networking/timestamping/.gitignore
@@ -1,2 +1,3 @@
1timestamping 1timestamping
2txtimestamp
2hwtstamp_config 3hwtstamp_config
diff --git a/Documentation/networking/timestamping/Makefile b/Documentation/networking/timestamping/Makefile
index d934afc8306a..52ac67da9315 100644
--- a/Documentation/networking/timestamping/Makefile
+++ b/Documentation/networking/timestamping/Makefile
@@ -1,14 +1,8 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := timestamping hwtstamp_config 2hostprogs-y := hwtstamp_config timestamping
6 3
7# Tell kbuild to always build the programs 4# Tell kbuild to always build the programs
8always := $(hostprogs-y) 5always := $(hostprogs-y)
9 6
10HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include 7HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include
11HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include 8HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include
12
13clean:
14 rm -f timestamping hwtstamp_config
diff --git a/Documentation/pcmcia/Makefile b/Documentation/pcmcia/Makefile
index accde871ae77..47a8fa162683 100644
--- a/Documentation/pcmcia/Makefile
+++ b/Documentation/pcmcia/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := crc32hash 2hostprogs-y := crc32hash
6 3
diff --git a/Documentation/prctl/.gitignore b/Documentation/prctl/.gitignore
new file mode 100644
index 000000000000..0b5c27447bf6
--- /dev/null
+++ b/Documentation/prctl/.gitignore
@@ -0,0 +1,3 @@
1disable-tsc-ctxt-sw-stress-test
2disable-tsc-on-off-stress-test
3disable-tsc-test
diff --git a/Documentation/prctl/Makefile b/Documentation/prctl/Makefile
new file mode 100644
index 000000000000..3e3232dcb2b8
--- /dev/null
+++ b/Documentation/prctl/Makefile
@@ -0,0 +1,8 @@
1# List of programs to build
2hostprogs-y := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test
3# Tell kbuild to always build the programs
4always := $(hostprogs-y)
5
6HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include
7HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include
8HOSTCFLAGS_disable-tsc-test.o += -I$(objtree)/usr/include
diff --git a/Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c b/Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c
index f8e8e95e81fd..81fdd425ab3e 100644
--- a/Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c
+++ b/Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c
@@ -27,19 +27,20 @@
27# define PR_TSC_SIGSEGV 2 /* throw a SIGSEGV instead of reading the TSC */ 27# define PR_TSC_SIGSEGV 2 /* throw a SIGSEGV instead of reading the TSC */
28#endif 28#endif
29 29
30uint64_t rdtsc() { 30static uint64_t rdtsc(void)
31{
31uint32_t lo, hi; 32uint32_t lo, hi;
32/* We cannot use "=A", since this would use %rax on x86_64 */ 33/* We cannot use "=A", since this would use %rax on x86_64 */
33__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); 34__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
34return (uint64_t)hi << 32 | lo; 35return (uint64_t)hi << 32 | lo;
35} 36}
36 37
37void sigsegv_expect(int sig) 38static void sigsegv_expect(int sig)
38{ 39{
39 /* */ 40 /* */
40} 41}
41 42
42void segvtask(void) 43static void segvtask(void)
43{ 44{
44 if (prctl(PR_SET_TSC, PR_TSC_SIGSEGV) < 0) 45 if (prctl(PR_SET_TSC, PR_TSC_SIGSEGV) < 0)
45 { 46 {
@@ -54,13 +55,13 @@ void segvtask(void)
54} 55}
55 56
56 57
57void sigsegv_fail(int sig) 58static void sigsegv_fail(int sig)
58{ 59{
59 fprintf(stderr, "FATAL ERROR, rdtsc() failed while enabled\n"); 60 fprintf(stderr, "FATAL ERROR, rdtsc() failed while enabled\n");
60 exit(0); 61 exit(0);
61} 62}
62 63
63void rdtsctask(void) 64static void rdtsctask(void)
64{ 65{
65 if (prctl(PR_SET_TSC, PR_TSC_ENABLE) < 0) 66 if (prctl(PR_SET_TSC, PR_TSC_ENABLE) < 0)
66 { 67 {
diff --git a/Documentation/prctl/disable-tsc-on-off-stress-test.c b/Documentation/prctl/disable-tsc-on-off-stress-test.c
index 1fcd91445375..4d83a27627f9 100644
--- a/Documentation/prctl/disable-tsc-on-off-stress-test.c
+++ b/Documentation/prctl/disable-tsc-on-off-stress-test.c
@@ -29,7 +29,8 @@
29 29
30/* snippet from wikipedia :-) */ 30/* snippet from wikipedia :-) */
31 31
32uint64_t rdtsc() { 32static uint64_t rdtsc(void)
33{
33uint32_t lo, hi; 34uint32_t lo, hi;
34/* We cannot use "=A", since this would use %rax on x86_64 */ 35/* We cannot use "=A", since this would use %rax on x86_64 */
35__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); 36__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
@@ -38,7 +39,7 @@ return (uint64_t)hi << 32 | lo;
38 39
39int should_segv = 0; 40int should_segv = 0;
40 41
41void sigsegv_cb(int sig) 42static void sigsegv_cb(int sig)
42{ 43{
43 if (!should_segv) 44 if (!should_segv)
44 { 45 {
@@ -55,7 +56,7 @@ void sigsegv_cb(int sig)
55 rdtsc(); 56 rdtsc();
56} 57}
57 58
58void task(void) 59static void task(void)
59{ 60{
60 signal(SIGSEGV, sigsegv_cb); 61 signal(SIGSEGV, sigsegv_cb);
61 alarm(10); 62 alarm(10);
diff --git a/Documentation/prctl/disable-tsc-test.c b/Documentation/prctl/disable-tsc-test.c
index 843c81eac235..2541e65cb64b 100644
--- a/Documentation/prctl/disable-tsc-test.c
+++ b/Documentation/prctl/disable-tsc-test.c
@@ -29,14 +29,15 @@ const char *tsc_names[] =
29 [PR_TSC_SIGSEGV] = "PR_TSC_SIGSEGV", 29 [PR_TSC_SIGSEGV] = "PR_TSC_SIGSEGV",
30}; 30};
31 31
32uint64_t rdtsc() { 32static uint64_t rdtsc(void)
33{
33uint32_t lo, hi; 34uint32_t lo, hi;
34/* We cannot use "=A", since this would use %rax on x86_64 */ 35/* We cannot use "=A", since this would use %rax on x86_64 */
35__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); 36__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
36return (uint64_t)hi << 32 | lo; 37return (uint64_t)hi << 32 | lo;
37} 38}
38 39
39void sigsegv_cb(int sig) 40static void sigsegv_cb(int sig)
40{ 41{
41 int tsc_val = 0; 42 int tsc_val = 0;
42 43
diff --git a/Documentation/ptp/.gitignore b/Documentation/ptp/.gitignore
new file mode 100644
index 000000000000..f562e49d6917
--- /dev/null
+++ b/Documentation/ptp/.gitignore
@@ -0,0 +1 @@
testptp
diff --git a/Documentation/ptp/Makefile b/Documentation/ptp/Makefile
new file mode 100644
index 000000000000..293d6c09a11f
--- /dev/null
+++ b/Documentation/ptp/Makefile
@@ -0,0 +1,8 @@
1# List of programs to build
2hostprogs-y := testptp
3
4# Tell kbuild to always build the programs
5always := $(hostprogs-y)
6
7HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include
8HOSTLOADLIBES_testptp := -lrt
diff --git a/Documentation/ptp/testptp.c b/Documentation/ptp/testptp.c
index ba1d50200c46..2bc8abc57fa0 100644
--- a/Documentation/ptp/testptp.c
+++ b/Documentation/ptp/testptp.c
@@ -500,11 +500,11 @@ int main(int argc, char *argv[])
500 interval = t2 - t1; 500 interval = t2 - t1;
501 offset = (t2 + t1) / 2 - tp; 501 offset = (t2 + t1) / 2 - tp;
502 502
503 printf("system time: %" PRId64 ".%u\n", 503 printf("system time: %lld.%u\n",
504 (pct+2*i)->sec, (pct+2*i)->nsec); 504 (pct+2*i)->sec, (pct+2*i)->nsec);
505 printf("phc time: %" PRId64 ".%u\n", 505 printf("phc time: %lld.%u\n",
506 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); 506 (pct+2*i+1)->sec, (pct+2*i+1)->nsec);
507 printf("system time: %" PRId64 ".%u\n", 507 printf("system time: %lld.%u\n",
508 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); 508 (pct+2*i+2)->sec, (pct+2*i+2)->nsec);
509 printf("system/phc clock time offset is %" PRId64 " ns\n" 509 printf("system/phc clock time offset is %" PRId64 " ns\n"
510 "system clock time delay is %" PRId64 " ns\n", 510 "system clock time delay is %" PRId64 " ns\n",
diff --git a/Documentation/ptp/testptp.mk b/Documentation/ptp/testptp.mk
deleted file mode 100644
index 4ef2d9755421..000000000000
--- a/Documentation/ptp/testptp.mk
+++ /dev/null
@@ -1,33 +0,0 @@
1# PTP 1588 clock support - User space test program
2#
3# Copyright (C) 2010 OMICRON electronics GmbH
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19CC = $(CROSS_COMPILE)gcc
20INC = -I$(KBUILD_OUTPUT)/usr/include
21CFLAGS = -Wall $(INC)
22LDLIBS = -lrt
23PROGS = testptp
24
25all: $(PROGS)
26
27testptp: testptp.o
28
29clean:
30 rm -f testptp.o
31
32distclean: clean
33 rm -f $(PROGS)
diff --git a/Documentation/spi/Makefile b/Documentation/spi/Makefile
index a5b03c88beae..efa255813e9d 100644
--- a/Documentation/spi/Makefile
+++ b/Documentation/spi/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := spidev_test spidev_fdx 2hostprogs-y := spidev_test spidev_fdx
6 3
diff --git a/Documentation/this_cpu_ops.txt b/Documentation/this_cpu_ops.txt
index 0ec995712176..2cbf71975381 100644
--- a/Documentation/this_cpu_ops.txt
+++ b/Documentation/this_cpu_ops.txt
@@ -41,7 +41,6 @@ The following this_cpu() operations with implied preemption protection
41are defined. These operations can be used without worrying about 41are defined. These operations can be used without worrying about
42preemption and interrupts. 42preemption and interrupts.
43 43
44 this_cpu_add()
45 this_cpu_read(pcp) 44 this_cpu_read(pcp)
46 this_cpu_write(pcp, val) 45 this_cpu_write(pcp, val)
47 this_cpu_add(pcp, val) 46 this_cpu_add(pcp, val)
@@ -225,7 +224,6 @@ still occur while an operation is in progress and if the interrupt too
225modifies the variable, then RMW actions can not be guaranteed to be 224modifies the variable, then RMW actions can not be guaranteed to be
226safe. 225safe.
227 226
228 __this_cpu_add()
229 __this_cpu_read(pcp) 227 __this_cpu_read(pcp)
230 __this_cpu_write(pcp, val) 228 __this_cpu_write(pcp, val)
231 __this_cpu_add(pcp, val) 229 __this_cpu_add(pcp, val)
diff --git a/Documentation/timers/.gitignore b/Documentation/timers/.gitignore
new file mode 100644
index 000000000000..c5c45d7ec0df
--- /dev/null
+++ b/Documentation/timers/.gitignore
@@ -0,0 +1 @@
hpet_example
diff --git a/Documentation/timers/Makefile b/Documentation/timers/Makefile
index 73f75f8a87dc..6c09ee6ca721 100644
--- a/Documentation/timers/Makefile
+++ b/Documentation/timers/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-$(CONFIG_X86) := hpet_example 2hostprogs-$(CONFIG_X86) := hpet_example
6 3
diff --git a/Documentation/vDSO/.gitignore b/Documentation/vDSO/.gitignore
new file mode 100644
index 000000000000..133bf9ee986c
--- /dev/null
+++ b/Documentation/vDSO/.gitignore
@@ -0,0 +1,2 @@
1vdso_test
2vdso_standalone_test_x86
diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile
new file mode 100644
index 000000000000..2b99e57207c1
--- /dev/null
+++ b/Documentation/vDSO/Makefile
@@ -0,0 +1,12 @@
1# vdso_test won't build for glibc < 2.16, so disable it
2# hostprogs-y := vdso_test
3hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86
4vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o
5vdso_test-objs := parse_vdso.o vdso_test.o
6
7# Tell kbuild to always build the programs
8always := $(hostprogs-y)
9
10HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99
11HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector
12HOSTLOADLIBES_vdso_standalone_test_x86 := -nostdlib
diff --git a/Documentation/video4linux/.gitignore b/Documentation/video4linux/.gitignore
deleted file mode 100644
index 952703943e8e..000000000000
--- a/Documentation/video4linux/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
1v4lgrab
diff --git a/Documentation/video4linux/Makefile b/Documentation/video4linux/Makefile
new file mode 100644
index 000000000000..65a351d75c95
--- /dev/null
+++ b/Documentation/video4linux/Makefile
@@ -0,0 +1 @@
obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
diff --git a/Documentation/watchdog/Makefile b/Documentation/watchdog/Makefile
new file mode 100644
index 000000000000..6018f45f2471
--- /dev/null
+++ b/Documentation/watchdog/Makefile
@@ -0,0 +1 @@
subdir-y := src
diff --git a/Documentation/watchdog/src/Makefile b/Documentation/watchdog/src/Makefile
index 40e5f46e4740..4a892c304983 100644
--- a/Documentation/watchdog/src/Makefile
+++ b/Documentation/watchdog/src/Makefile
@@ -1,6 +1,3 @@
1# kbuild trick to avoid linker error. Can be omitted if a module is built.
2obj- := dummy.o
3
4# List of programs to build 1# List of programs to build
5hostprogs-y := watchdog-simple watchdog-test 2hostprogs-y := watchdog-simple watchdog-test
6 3
diff --git a/MAINTAINERS b/MAINTAINERS
index 78cb4aad5bfe..a12edf2624e5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3018,6 +3018,7 @@ F: Documentation/
3018X: Documentation/ABI/ 3018X: Documentation/ABI/
3019X: Documentation/devicetree/ 3019X: Documentation/devicetree/
3020X: Documentation/[a-z][a-z]_[A-Z][A-Z]/ 3020X: Documentation/[a-z][a-z]_[A-Z][A-Z]/
3021T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/doc.git
3021 3022
3022DOUBLETALK DRIVER 3023DOUBLETALK DRIVER
3023M: "James R. Van Zandt" <jrv@vanzandt.mv.com> 3024M: "James R. Van Zandt" <jrv@vanzandt.mv.com>
diff --git a/Makefile b/Makefile
index 5826c02842c4..6127ca66ed98 100644
--- a/Makefile
+++ b/Makefile
@@ -1547,6 +1547,8 @@ endif
1547 $(cmd_crmodverdir) 1547 $(cmd_crmodverdir)
1548 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ 1548 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
1549 $(build)=$(build-dir) 1549 $(build)=$(build-dir)
1550# Make sure the latest headers are built for Documentation
1551Documentation/: headers_install
1550%/: prepare scripts FORCE 1552%/: prepare scripts FORCE
1551 $(cmd_crmodverdir) 1553 $(cmd_crmodverdir)
1552 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ 1554 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
diff --git a/drivers/media/rc/keymaps/Kconfig b/drivers/media/rc/keymaps/Kconfig
index 8e615fd55852..767423bbbdd0 100644
--- a/drivers/media/rc/keymaps/Kconfig
+++ b/drivers/media/rc/keymaps/Kconfig
@@ -12,4 +12,4 @@ config RC_MAP
12 The ir-keytable program, available at v4l-utils package 12 The ir-keytable program, available at v4l-utils package
13 provide the tool and the same RC maps for load from 13 provide the tool and the same RC maps for load from
14 userspace. Its available at 14 userspace. Its available at
15 http://git.linuxtv.org/v4l-utils 15 http://git.linuxtv.org/cgit.cgi/v4l-utils.git/
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig
index 9ca0f8d59a14..ba7e21a73023 100644
--- a/drivers/media/v4l2-core/Kconfig
+++ b/drivers/media/v4l2-core/Kconfig
@@ -25,6 +25,15 @@ config VIDEO_FIXED_MINOR_RANGES
25 25
26 When in doubt, say N. 26 When in doubt, say N.
27 27
28config VIDEO_PCI_SKELETON
29 tristate "Skeleton PCI V4L2 driver"
30 depends on PCI && BUILD_DOCSRC
31 depends on VIDEO_V4L2 && VIDEOBUF2_CORE
32 depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG
33 ---help---
34 Enable build of the skeleton PCI driver, used as a reference
35 when developing new drivers.
36
28# Used by drivers that need tuner.ko 37# Used by drivers that need tuner.ko
29config VIDEO_TUNER 38config VIDEO_TUNER
30 tristate 39 tristate
diff --git a/tools/include/tools/endian.h b/tools/include/tools/endian.h
new file mode 100644
index 000000000000..8001194008da
--- /dev/null
+++ b/tools/include/tools/endian.h
@@ -0,0 +1,56 @@
1#ifndef _TOOLS_ENDIAN_H
2#define _TOOLS_ENDIAN_H
3
4#include <byteswap.h>
5
6#if __BYTE_ORDER == __LITTLE_ENDIAN
7
8#ifndef htole16
9#define htole16(x) (x)
10#endif
11#ifndef htole32
12#define htole32(x) (x)
13#endif
14#ifndef htole64
15#define htole64(x) (x)
16#endif
17
18#ifndef le16toh
19#define le16toh(x) (x)
20#endif
21
22#ifndef le32toh
23#define le32toh(x) (x)
24#endif
25
26#ifndef le64toh
27#define le64toh(x) (x)
28#endif
29
30#else /* __BYTE_ORDER */
31
32#ifndef htole16
33#define htole16(x) __bswap_16(x)
34#endif
35#ifndef htole32
36#define htole32(x) __bswap_32(x)
37#endif
38#ifndef htole64
39#define htole64(x) __bswap_64(x)
40#endif
41
42#ifndef le16toh
43#define le16toh(x) __bswap_16(x)
44#endif
45
46#ifndef le32toh
47#define le32toh(x) __bswap_32(x)
48#endif
49
50#ifndef le64toh
51#define le64toh(x) __bswap_64(x)
52#endif
53
54#endif
55
56#endif /* _TOOLS_ENDIAN_H */