diff options
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 @@ | |||
1 | filesystems/dnotify_test | ||
2 | laptops/dslm | ||
3 | timers/hpet_example | ||
4 | vm/hugepage-mmap | ||
5 | vm/hugepage-shm | ||
6 | vm/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 | |||
110 | complex devices use the Media Controller (see <xref linkend="media_controller" />) | 110 | complex devices use the Media Controller (see <xref linkend="media_controller" />) |
111 | which can be used for this purpose. But most drivers do not use it, | 111 | which can be used for this purpose. But most drivers do not use it, |
112 | and while some code exists that uses sysfs to discover related devices | 112 | and 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> |
114 | git repository), there is no library yet that can provide a single API towards | 114 | git repository), there is no library yet that can provide a single API towards |
115 | both Media Controller-based devices and devices that do not use the Media Controller. | 115 | both Media Controller-based devices and devices that do not use the Media Controller. |
116 | If you want to work on this please write to the linux-media mailing list: &v4l-ml;.</para> | 116 | If 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 @@ | |||
1 | obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ | 1 | subdir-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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := getdelays | 2 | hostprogs-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 @@ | |||
1 | BIN := vrl4 | 1 | # List of programs to build |
2 | hostprogs-y := vrl4 | ||
2 | 3 | ||
3 | .PHONY: all | 4 | # Tell kbuild to always build the programs |
4 | all: $(BIN) | 5 | always := $(hostprogs-y) |
5 | 6 | ||
6 | .PHONY: clean | 7 | HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include |
7 | clean: | ||
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 | ||
38 | struct hdr { | 39 | struct 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 | ||
80 | ssize_t do_read(int fd, void *buf, size_t count) | 81 | static 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 | ||
101 | ssize_t do_write(int fd, const void *buf, size_t count) | 102 | static 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 | ||
120 | ssize_t write_zero(int fd, size_t len) | 121 | static 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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := cfag12864b-example | 2 | hostprogs-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 @@ | |||
1 | ifneq ($(CONFIG_BLACKFIN),) | ||
1 | obj-m := gptimers-example.o | 2 | obj-m := gptimers-example.o |
2 | 3 | endif | |
3 | all: modules | ||
4 | |||
5 | modules 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. | 1 | subdir-y := configfs |
2 | obj- := dummy.o | ||
3 | 2 | ||
4 | # List of programs to build | 3 | # List of programs to build |
5 | hostprogs-y := dnotify_test | 4 | hostprogs-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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := aliasing-test | 2 | hostprogs-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 @@ | |||
1 | dslm | ||
2 | freefall | ||
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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := dslm | 2 | hostprogs-y := dslm freefall |
6 | 3 | ||
7 | # Tell kbuild to always build the programs | 4 | # Tell kbuild to always build the programs |
8 | always := $(hostprogs-y) | 5 | always := $(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. | 2 | hostprogs-y := mpssd |
3 | # Copyright(c) 2013, Intel Corporation. | 3 | |
4 | # | 4 | mpssd-objs := mpssd.o sysfs.o |
5 | |||
6 | # Tell kbuild to always build the programs | ||
7 | always := $(hostprogs-y) | ||
8 | |||
9 | HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include | ||
10 | |||
5 | ifdef DEBUG | 11 | ifdef DEBUG |
6 | CFLAGS += $(USERWARNFLAGS) -I. -g -Wall -DDEBUG=$(DEBUG) | 12 | HOSTCFLAGS += -DDEBUG=$(DEBUG) |
7 | else | ||
8 | CFLAGS += $(USERWARNFLAGS) -I. -g -Wall | ||
9 | endif | 13 | endif |
10 | 14 | ||
11 | mpssd: mpssd.o sysfs.o | 15 | HOSTLOADLIBES_mpssd := -lpthread |
12 | $(CC) $(CFLAGS) -o $@ $^ -lpthread | ||
13 | 16 | ||
14 | install: | 17 | install: |
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 | |||
18 | clean: | ||
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 | ||
45 | static void init_mic(struct mic_info *mic); | 46 | static 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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := mei-amt-version | 2 | hostprogs-y := mei-amt-version |
6 | HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include | 3 | HOSTCFLAGS_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 | |
2 | obj- := dummy.o | ||
3 | |||
4 | # Tell kbuild to always build the programs | ||
5 | always := $(hostprogs-y) | ||
6 | |||
7 | obj-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 @@ | |||
1 | timestamping | 1 | timestamping |
2 | txtimestamp | ||
2 | hwtstamp_config | 3 | hwtstamp_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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := timestamping hwtstamp_config | 2 | hostprogs-y := hwtstamp_config timestamping |
6 | 3 | ||
7 | # Tell kbuild to always build the programs | 4 | # Tell kbuild to always build the programs |
8 | always := $(hostprogs-y) | 5 | always := $(hostprogs-y) |
9 | 6 | ||
10 | HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include | 7 | HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include |
11 | HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include | 8 | HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include |
12 | |||
13 | clean: | ||
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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := crc32hash | 2 | hostprogs-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 @@ | |||
1 | disable-tsc-ctxt-sw-stress-test | ||
2 | disable-tsc-on-off-stress-test | ||
3 | disable-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 | ||
2 | hostprogs-y := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test disable-tsc-test | ||
3 | # Tell kbuild to always build the programs | ||
4 | always := $(hostprogs-y) | ||
5 | |||
6 | HOSTCFLAGS_disable-tsc-ctxt-sw-stress-test.o += -I$(objtree)/usr/include | ||
7 | HOSTCFLAGS_disable-tsc-on-off-stress-test.o += -I$(objtree)/usr/include | ||
8 | HOSTCFLAGS_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 | ||
30 | uint64_t rdtsc() { | 30 | static uint64_t rdtsc(void) |
31 | { | ||
31 | uint32_t lo, hi; | 32 | uint32_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)); |
34 | return (uint64_t)hi << 32 | lo; | 35 | return (uint64_t)hi << 32 | lo; |
35 | } | 36 | } |
36 | 37 | ||
37 | void sigsegv_expect(int sig) | 38 | static void sigsegv_expect(int sig) |
38 | { | 39 | { |
39 | /* */ | 40 | /* */ |
40 | } | 41 | } |
41 | 42 | ||
42 | void segvtask(void) | 43 | static 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 | ||
57 | void sigsegv_fail(int sig) | 58 | static 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 | ||
63 | void rdtsctask(void) | 64 | static 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 | ||
32 | uint64_t rdtsc() { | 32 | static uint64_t rdtsc(void) |
33 | { | ||
33 | uint32_t lo, hi; | 34 | uint32_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 | ||
39 | int should_segv = 0; | 40 | int should_segv = 0; |
40 | 41 | ||
41 | void sigsegv_cb(int sig) | 42 | static 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 | ||
58 | void task(void) | 59 | static 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 | ||
32 | uint64_t rdtsc() { | 32 | static uint64_t rdtsc(void) |
33 | { | ||
33 | uint32_t lo, hi; | 34 | uint32_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)); |
36 | return (uint64_t)hi << 32 | lo; | 37 | return (uint64_t)hi << 32 | lo; |
37 | } | 38 | } |
38 | 39 | ||
39 | void sigsegv_cb(int sig) | 40 | static 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 | ||
2 | hostprogs-y := testptp | ||
3 | |||
4 | # Tell kbuild to always build the programs | ||
5 | always := $(hostprogs-y) | ||
6 | |||
7 | HOSTCFLAGS_testptp.o += -I$(objtree)/usr/include | ||
8 | HOSTLOADLIBES_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 | |||
19 | CC = $(CROSS_COMPILE)gcc | ||
20 | INC = -I$(KBUILD_OUTPUT)/usr/include | ||
21 | CFLAGS = -Wall $(INC) | ||
22 | LDLIBS = -lrt | ||
23 | PROGS = testptp | ||
24 | |||
25 | all: $(PROGS) | ||
26 | |||
27 | testptp: testptp.o | ||
28 | |||
29 | clean: | ||
30 | rm -f testptp.o | ||
31 | |||
32 | distclean: 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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := spidev_test spidev_fdx | 2 | hostprogs-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 | |||
41 | are defined. These operations can be used without worrying about | 41 | are defined. These operations can be used without worrying about |
42 | preemption and interrupts. | 42 | preemption 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 | |||
225 | modifies the variable, then RMW actions can not be guaranteed to be | 224 | modifies the variable, then RMW actions can not be guaranteed to be |
226 | safe. | 225 | safe. |
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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-$(CONFIG_X86) := hpet_example | 2 | hostprogs-$(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 @@ | |||
1 | vdso_test | ||
2 | vdso_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 | ||
3 | hostprogs-$(CONFIG_X86) := vdso_standalone_test_x86 | ||
4 | vdso_standalone_test_x86-objs := vdso_standalone_test_x86.o parse_vdso.o | ||
5 | vdso_test-objs := parse_vdso.o vdso_test.o | ||
6 | |||
7 | # Tell kbuild to always build the programs | ||
8 | always := $(hostprogs-y) | ||
9 | |||
10 | HOSTCFLAGS := -I$(objtree)/usr/include -std=gnu99 | ||
11 | HOSTCFLAGS_vdso_standalone_test_x86.o := -fno-asynchronous-unwind-tables -fno-stack-protector | ||
12 | HOSTLOADLIBES_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 @@ | |||
1 | v4lgrab | ||
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. | ||
2 | obj- := dummy.o | ||
3 | |||
4 | # List of programs to build | 1 | # List of programs to build |
5 | hostprogs-y := watchdog-simple watchdog-test | 2 | hostprogs-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/ | |||
3018 | X: Documentation/ABI/ | 3018 | X: Documentation/ABI/ |
3019 | X: Documentation/devicetree/ | 3019 | X: Documentation/devicetree/ |
3020 | X: Documentation/[a-z][a-z]_[A-Z][A-Z]/ | 3020 | X: Documentation/[a-z][a-z]_[A-Z][A-Z]/ |
3021 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/doc.git | ||
3021 | 3022 | ||
3022 | DOUBLETALK DRIVER | 3023 | DOUBLETALK DRIVER |
3023 | M: "James R. Van Zandt" <jrv@vanzandt.mv.com> | 3024 | M: "James R. Van Zandt" <jrv@vanzandt.mv.com> |
@@ -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 | ||
1551 | Documentation/: 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 | ||
28 | config 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 |
29 | config VIDEO_TUNER | 38 | config 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 */ | ||