Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/doc

Pull documentation updates from Jiri Kosina:
"Updates to kernel documentation.

I took this over (hopefully temporarily) from Randy who was not
willing to maintain it any longer. This pile mostly is a relay of
queue that Randy already had in his tree"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/doc:
Documentation: fix broken v4l-utils URL
Documentation: update include path for mpssd
Documentation: correct parameter error for dma_mapping_error
MAINTAINERS: update location of linux-doc tree
Documentation: remove networking/.gitignore
tools: add more endian.h macros
Make Documenation depend on headers_install
Docs: this_cpu_ops: remove redundant add forms
Documentation: disable vdso_test to avoid breakage with old glibc
Documentation: update vDSO makefile to build portable examples
Documentation: update .gitignore files
Documentation: support glibc versions without htole macros
v4l2-pci-skeleton: Only build if PCI is available
Documentation: fix misc. warnings
Documentation: make functions static to avoid prototype warnings
Documentation: add makefiles for more targets
Documentation: use subdir-y to avoid unnecessary built-in.o files

+168 -136
-7
Documentation/.gitignore
··· 1 - filesystems/dnotify_test 2 - laptops/dslm 3 - timers/hpet_example 4 - vm/hugepage-mmap 5 - vm/hugepage-shm 6 - vm/map_hugetlb 7 -
+3 -3
Documentation/DMA-API-HOWTO.txt
··· 531 531 size_t size = buffer->len; 532 532 533 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 536 * reduce current DMA mapping usage, 537 537 * delay and try again later or ··· 588 588 size_t size = buffer->len; 589 589 590 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 593 * reduce current DMA mapping usage, 594 594 * delay and try again later or ··· 689 689 dma_addr_t mapping; 690 690 691 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 694 * reduce current DMA mapping usage, 695 695 * delay and try again later or
+1 -1
Documentation/DocBook/media/v4l/common.xml
··· 110 110 complex devices use the Media Controller (see <xref linkend="media_controller" />) 111 111 which can be used for this purpose. But most drivers do not use it, 112 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 114 git repository), there is no library yet that can provide a single API towards 115 115 both Media Controller-based devices and devices that do not use the Media Controller. 116 116 If you want to work on this please write to the linux-media mailing list: &v4l-ml;.</para>
+4 -3
Documentation/Makefile
··· 1 - obj-m := DocBook/ accounting/ auxdisplay/ connector/ \ 2 - filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \ 3 - pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/ 1 + subdir-y := accounting arm auxdisplay blackfin connector \ 2 + filesystems filesystems ia64 laptops mic misc-devices \ 3 + networking pcmcia prctl ptp spi timers vDSO video4linux \ 4 + watchdog
-3
Documentation/accounting/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := getdelays 6 3
+1
Documentation/arm/Makefile
··· 1 + subdir-y := SH-Mobile
+1
Documentation/arm/SH-Mobile/.gitignore
··· 1 + vrl4
+5 -6
Documentation/arm/SH-Mobile/Makefile
··· 1 - BIN := vrl4 1 + # List of programs to build 2 + hostprogs-y := vrl4 2 3 3 - .PHONY: all 4 - all: $(BIN) 4 + # Tell kbuild to always build the programs 5 + always := $(hostprogs-y) 5 6 6 - .PHONY: clean 7 - clean: 8 - rm -f *.o $(BIN) 7 + HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
+4 -3
Documentation/arm/SH-Mobile/vrl4.c
··· 34 34 #include <stdint.h> 35 35 #include <stdio.h> 36 36 #include <errno.h> 37 + #include <tools/endian.h> 37 38 38 39 struct hdr { 39 40 uint32_t magic1; ··· 78 77 79 78 #define ROUND_UP(x) ((x + ALIGN - 1) & ~(ALIGN - 1)) 80 79 81 - ssize_t do_read(int fd, void *buf, size_t count) 80 + static ssize_t do_read(int fd, void *buf, size_t count) 82 81 { 83 82 size_t offset = 0; 84 83 ssize_t l; ··· 99 98 return offset; 100 99 } 101 100 102 - ssize_t do_write(int fd, const void *buf, size_t count) 101 + static ssize_t do_write(int fd, const void *buf, size_t count) 103 102 { 104 103 size_t offset = 0; 105 104 ssize_t l; ··· 118 117 return offset; 119 118 } 120 119 121 - ssize_t write_zero(int fd, size_t len) 120 + static ssize_t write_zero(int fd, size_t len) 122 121 { 123 122 size_t i = len; 124 123
-3
Documentation/auxdisplay/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := cfag12864b-example 6 3
+2 -5
Documentation/blackfin/Makefile
··· 1 + ifneq ($(CONFIG_BLACKFIN),) 1 2 obj-m := gptimers-example.o 2 - 3 - all: modules 4 - 5 - modules clean: 6 - $(MAKE) -C ../.. SUBDIRS=$(PWD) $@ 3 + endif
+1
Documentation/filesystems/.gitignore
··· 1 + dnotify_test
+1 -2
Documentation/filesystems/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 1 + subdir-y := configfs 3 2 4 3 # List of programs to build 5 4 hostprogs-y := dnotify_test
-3
Documentation/ia64/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := aliasing-test 6 3
+2
Documentation/laptops/.gitignore
··· 1 + dslm 2 + freefall
+1 -4
Documentation/laptops/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 - hostprogs-y := dslm 2 + hostprogs-y := dslm freefall 6 3 7 4 # Tell kbuild to always build the programs 8 5 always := $(hostprogs-y)
+1
Documentation/mic/Makefile
··· 1 + subdir-y := mpssd
+12 -12
Documentation/mic/mpssd/Makefile
··· 1 - # 2 - # Makefile - Intel MIC User Space Tools. 3 - # Copyright(c) 2013, Intel Corporation. 4 - # 1 + # List of programs to build 2 + hostprogs-y := mpssd 3 + 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 11 ifdef DEBUG 6 - CFLAGS += $(USERWARNFLAGS) -I. -g -Wall -DDEBUG=$(DEBUG) 7 - else 8 - CFLAGS += $(USERWARNFLAGS) -I. -g -Wall 12 + HOSTCFLAGS += -DDEBUG=$(DEBUG) 9 13 endif 10 14 11 - mpssd: mpssd.o sysfs.o 12 - $(CC) $(CFLAGS) -o $@ $^ -lpthread 15 + HOSTLOADLIBES_mpssd := -lpthread 13 16 14 17 install: 15 18 install mpssd /usr/sbin/mpssd 16 19 install micctrl /usr/sbin/micctrl 17 - 18 - clean: 19 - rm -f mpssd *.o
+3 -2
Documentation/mic/mpssd/mpssd.c
··· 41 41 #include "mpssd.h" 42 42 #include <linux/mic_ioctl.h> 43 43 #include <linux/mic_common.h> 44 + #include <tools/endian.h> 44 45 45 46 static void init_mic(struct mic_info *mic); 46 47 ··· 1477 1476 1478 1477 len = snprintf(buffer, PATH_MAX, 1479 1478 "clocksource=tsc highres=off nohz=off "); 1480 - len += snprintf(buffer + len, PATH_MAX, 1479 + len += snprintf(buffer + len, PATH_MAX - len, 1481 1480 "cpufreq_on;corec6_off;pc3_off;pc6_off "); 1482 - len += snprintf(buffer + len, PATH_MAX, 1481 + len += snprintf(buffer + len, PATH_MAX - len, 1483 1482 "ifcfg=static;address,172.31.%d.1;netmask,255.255.255.0", 1484 1483 mic->id); 1485 1484
+1
Documentation/misc-devices/Makefile
··· 1 + subdir-y := mei
-3
Documentation/misc-devices/mei/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := mei-amt-version 6 3 HOSTCFLAGS_mei-amt-version.o += -I$(objtree)/usr/include
Documentation/networking/.gitignore
+1 -7
Documentation/networking/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 - # Tell kbuild to always build the programs 5 - always := $(hostprogs-y) 6 - 7 - obj-m := timestamping/ 1 + subdir-y := timestamping
+1
Documentation/networking/timestamping/.gitignore
··· 1 1 timestamping 2 + txtimestamp 2 3 hwtstamp_config
+1 -7
Documentation/networking/timestamping/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 - hostprogs-y := timestamping hwtstamp_config 2 + hostprogs-y := hwtstamp_config timestamping 6 3 7 4 # Tell kbuild to always build the programs 8 5 always := $(hostprogs-y) 9 6 10 7 HOSTCFLAGS_timestamping.o += -I$(objtree)/usr/include 11 8 HOSTCFLAGS_hwtstamp_config.o += -I$(objtree)/usr/include 12 - 13 - clean: 14 - rm -f timestamping hwtstamp_config
-3
Documentation/pcmcia/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := crc32hash 6 3
+3
Documentation/prctl/.gitignore
··· 1 + disable-tsc-ctxt-sw-stress-test 2 + disable-tsc-on-off-stress-test 3 + disable-tsc-test
+8
Documentation/prctl/Makefile
··· 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
+6 -5
Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c
··· 27 27 # define PR_TSC_SIGSEGV 2 /* throw a SIGSEGV instead of reading the TSC */ 28 28 #endif 29 29 30 - uint64_t rdtsc() { 30 + static uint64_t rdtsc(void) 31 + { 31 32 uint32_t lo, hi; 32 33 /* We cannot use "=A", since this would use %rax on x86_64 */ 33 34 __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); 34 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 45 if (prctl(PR_SET_TSC, PR_TSC_SIGSEGV) < 0) 45 46 { ··· 55 54 } 56 55 57 56 58 - void sigsegv_fail(int sig) 57 + static void sigsegv_fail(int sig) 59 58 { 60 59 fprintf(stderr, "FATAL ERROR, rdtsc() failed while enabled\n"); 61 60 exit(0); 62 61 } 63 62 64 - void rdtsctask(void) 63 + static void rdtsctask(void) 65 64 { 66 65 if (prctl(PR_SET_TSC, PR_TSC_ENABLE) < 0) 67 66 {
+4 -3
Documentation/prctl/disable-tsc-on-off-stress-test.c
··· 29 29 30 30 /* snippet from wikipedia :-) */ 31 31 32 - uint64_t rdtsc() { 32 + static uint64_t rdtsc(void) 33 + { 33 34 uint32_t lo, hi; 34 35 /* We cannot use "=A", since this would use %rax on x86_64 */ 35 36 __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); ··· 39 38 40 39 int should_segv = 0; 41 40 42 - void sigsegv_cb(int sig) 41 + static void sigsegv_cb(int sig) 43 42 { 44 43 if (!should_segv) 45 44 { ··· 56 55 rdtsc(); 57 56 } 58 57 59 - void task(void) 58 + static void task(void) 60 59 { 61 60 signal(SIGSEGV, sigsegv_cb); 62 61 alarm(10);
+3 -2
Documentation/prctl/disable-tsc-test.c
··· 29 29 [PR_TSC_SIGSEGV] = "PR_TSC_SIGSEGV", 30 30 }; 31 31 32 - uint64_t rdtsc() { 32 + static uint64_t rdtsc(void) 33 + { 33 34 uint32_t lo, hi; 34 35 /* We cannot use "=A", since this would use %rax on x86_64 */ 35 36 __asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi)); 36 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 42 int tsc_val = 0; 42 43
+1
Documentation/ptp/.gitignore
··· 1 + testptp
+8
Documentation/ptp/Makefile
··· 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
+3 -3
Documentation/ptp/testptp.c
··· 500 500 interval = t2 - t1; 501 501 offset = (t2 + t1) / 2 - tp; 502 502 503 - printf("system time: %" PRId64 ".%u\n", 503 + printf("system time: %lld.%u\n", 504 504 (pct+2*i)->sec, (pct+2*i)->nsec); 505 - printf("phc time: %" PRId64 ".%u\n", 505 + printf("phc time: %lld.%u\n", 506 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 508 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); 509 509 printf("system/phc clock time offset is %" PRId64 " ns\n" 510 510 "system clock time delay is %" PRId64 " ns\n",
-33
Documentation/ptp/testptp.mk
··· 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)
-3
Documentation/spi/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := spidev_test spidev_fdx 6 3
-2
Documentation/this_cpu_ops.txt
··· 41 41 are defined. These operations can be used without worrying about 42 42 preemption and interrupts. 43 43 44 - this_cpu_add() 45 44 this_cpu_read(pcp) 46 45 this_cpu_write(pcp, val) 47 46 this_cpu_add(pcp, val) ··· 224 225 modifies the variable, then RMW actions can not be guaranteed to be 225 226 safe. 226 227 227 - __this_cpu_add() 228 228 __this_cpu_read(pcp) 229 229 __this_cpu_write(pcp, val) 230 230 __this_cpu_add(pcp, val)
+1
Documentation/timers/.gitignore
··· 1 + hpet_example
-3
Documentation/timers/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-$(CONFIG_X86) := hpet_example 6 3
+2
Documentation/vDSO/.gitignore
··· 1 + vdso_test 2 + vdso_standalone_test_x86
+12
Documentation/vDSO/Makefile
··· 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
-1
Documentation/video4linux/.gitignore
··· 1 - v4lgrab
+1
Documentation/video4linux/Makefile
··· 1 + obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
+1
Documentation/watchdog/Makefile
··· 1 + subdir-y := src
-3
Documentation/watchdog/src/Makefile
··· 1 - # kbuild trick to avoid linker error. Can be omitted if a module is built. 2 - obj- := dummy.o 3 - 4 1 # List of programs to build 5 2 hostprogs-y := watchdog-simple watchdog-test 6 3
+1
MAINTAINERS
··· 3018 3018 X: Documentation/ABI/ 3019 3019 X: Documentation/devicetree/ 3020 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 3023 DOUBLETALK DRIVER 3023 3024 M: "James R. Van Zandt" <jrv@vanzandt.mv.com>
+2
Makefile
··· 1547 1547 $(cmd_crmodverdir) 1548 1548 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ 1549 1549 $(build)=$(build-dir) 1550 + # Make sure the latest headers are built for Documentation 1551 + Documentation/: headers_install 1550 1552 %/: prepare scripts FORCE 1551 1553 $(cmd_crmodverdir) 1552 1554 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
+1 -1
drivers/media/rc/keymaps/Kconfig
··· 12 12 The ir-keytable program, available at v4l-utils package 13 13 provide the tool and the same RC maps for load from 14 14 userspace. Its available at 15 - http://git.linuxtv.org/v4l-utils 15 + http://git.linuxtv.org/cgit.cgi/v4l-utils.git/
+9
drivers/media/v4l2-core/Kconfig
··· 25 25 26 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 37 # Used by drivers that need tuner.ko 29 38 config VIDEO_TUNER 30 39 tristate
+56
tools/include/tools/endian.h
··· 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 */