mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
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
This commit is contained in:
commit
b6420ebd4a
50 changed files with 168 additions and 136 deletions
7
Documentation/.gitignore
vendored
7
Documentation/.gitignore
vendored
|
|
@ -1,7 +0,0 @@
|
|||
filesystems/dnotify_test
|
||||
laptops/dslm
|
||||
timers/hpet_example
|
||||
vm/hugepage-mmap
|
||||
vm/hugepage-shm
|
||||
vm/map_hugetlb
|
||||
|
||||
|
|
@ -531,7 +531,7 @@ To map a single region, you do:
|
|||
size_t size = buffer->len;
|
||||
|
||||
dma_handle = dma_map_single(dev, addr, size, direction);
|
||||
if (dma_mapping_error(dma_handle)) {
|
||||
if (dma_mapping_error(dev, dma_handle)) {
|
||||
/*
|
||||
* reduce current DMA mapping usage,
|
||||
* delay and try again later or
|
||||
|
|
@ -588,7 +588,7 @@ Specifically:
|
|||
size_t size = buffer->len;
|
||||
|
||||
dma_handle = dma_map_page(dev, page, offset, size, direction);
|
||||
if (dma_mapping_error(dma_handle)) {
|
||||
if (dma_mapping_error(dev, dma_handle)) {
|
||||
/*
|
||||
* reduce current DMA mapping usage,
|
||||
* delay and try again later or
|
||||
|
|
@ -689,7 +689,7 @@ to use the dma_sync_*() interfaces.
|
|||
dma_addr_t mapping;
|
||||
|
||||
mapping = dma_map_single(cp->dev, buffer, len, DMA_FROM_DEVICE);
|
||||
if (dma_mapping_error(dma_handle)) {
|
||||
if (dma_mapping_error(cp->dev, dma_handle)) {
|
||||
/*
|
||||
* reduce current DMA mapping usage,
|
||||
* delay and try again later or
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ makes no provisions to find these related devices. Some really
|
|||
complex devices use the Media Controller (see <xref linkend="media_controller" />)
|
||||
which can be used for this purpose. But most drivers do not use it,
|
||||
and while some code exists that uses sysfs to discover related devices
|
||||
(see libmedia_dev in the <ulink url="http://git.linuxtv.org/v4l-utils/">v4l-utils</ulink>
|
||||
(see libmedia_dev in the <ulink url="http://git.linuxtv.org/cgit.cgi/v4l-utils.git/">v4l-utils</ulink>
|
||||
git repository), there is no library yet that can provide a single API towards
|
||||
both Media Controller-based devices and devices that do not use the Media Controller.
|
||||
If you want to work on this please write to the linux-media mailing list: &v4l-ml;.</para>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
obj-m := DocBook/ accounting/ auxdisplay/ connector/ \
|
||||
filesystems/ filesystems/configfs/ ia64/ laptops/ networking/ \
|
||||
pcmcia/ spi/ timers/ watchdog/src/ misc-devices/mei/
|
||||
subdir-y := accounting arm auxdisplay blackfin connector \
|
||||
filesystems filesystems ia64 laptops mic misc-devices \
|
||||
networking pcmcia prctl ptp spi timers vDSO video4linux \
|
||||
watchdog
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# kbuild trick to avoid linker error. Can be omitted if a module is built.
|
||||
obj- := dummy.o
|
||||
|
||||
# List of programs to build
|
||||
hostprogs-y := getdelays
|
||||
|
||||
|
|
|
|||
1
Documentation/arm/Makefile
Normal file
1
Documentation/arm/Makefile
Normal file
|
|
@ -0,0 +1 @@
|
|||
subdir-y := SH-Mobile
|
||||
1
Documentation/arm/SH-Mobile/.gitignore
vendored
Normal file
1
Documentation/arm/SH-Mobile/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
vrl4
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
BIN := vrl4
|
||||
# List of programs to build
|
||||
hostprogs-y := vrl4
|
||||
|
||||
.PHONY: all
|
||||
all: $(BIN)
|
||||
# Tell kbuild to always build the programs
|
||||
always := $(hostprogs-y)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.o $(BIN)
|
||||
HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <tools/endian.h>
|
||||
|
||||
struct hdr {
|
||||
uint32_t magic1;
|
||||
|
|
@ -77,7 +78,7 @@ struct hdr {
|
|||
|
||||
#define ROUND_UP(x) ((x + ALIGN - 1) & ~(ALIGN - 1))
|
||||
|
||||
ssize_t do_read(int fd, void *buf, size_t count)
|
||||
static ssize_t do_read(int fd, void *buf, size_t count)
|
||||
{
|
||||
size_t offset = 0;
|
||||
ssize_t l;
|
||||
|
|
@ -98,7 +99,7 @@ ssize_t do_read(int fd, void *buf, size_t count)
|
|||
return offset;
|
||||
}
|
||||
|
||||
ssize_t do_write(int fd, const void *buf, size_t count)
|
||||
static ssize_t do_write(int fd, const void *buf, size_t count)
|
||||
{
|
||||
size_t offset = 0;
|
||||
ssize_t l;
|
||||
|
|
@ -117,7 +118,7 @@ ssize_t do_write(int fd, const void *buf, size_t count)
|
|||
return offset;
|
||||
}
|
||||
|
||||
ssize_t write_zero(int fd, size_t len)
|
||||
static ssize_t write_zero(int fd, size_t len)
|
||||
{
|
||||
size_t i = len;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# kbuild trick to avoid linker error. Can be omitted if a module is built.
|
||||
obj- := dummy.o
|
||||
|
||||
# List of programs to build
|
||||
hostprogs-y := cfag12864b-example
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
ifneq ($(CONFIG_BLACKFIN),)
|
||||
obj-m := gptimers-example.o
|
||||
|
||||
all: modules
|
||||
|
||||
modules clean:
|
||||
$(MAKE) -C ../.. SUBDIRS=$(PWD) $@
|
||||
endif
|
||||
|
|
|
|||
1
Documentation/filesystems/.gitignore
vendored
Normal file
1
Documentation/filesystems/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
dnotify_test
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
# kbuild trick to avoid linker error. Can be omitted if a module is built.
|
||||
obj- := dummy.o
|
||||
subdir-y := configfs
|
||||
|
||||
# List of programs to build
|
||||
hostprogs-y := dnotify_test
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# kbuild trick to avoid linker error. Can be omitted if a module is built.
|
||||
obj- := dummy.o
|
||||
|
||||
# List of programs to build
|
||||
hostprogs-y := aliasing-test
|
||||
|
||||
|
|
|
|||
2
Documentation/laptops/.gitignore
vendored
Normal file
2
Documentation/laptops/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
dslm
|
||||
freefall
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
# kbuild trick to avoid linker error. Can be omitted if a module is built.
|
||||
obj- := dummy.o
|
||||
|
||||
# List of programs to build
|
||||
hostprogs-y := dslm
|
||||
hostprogs-y := dslm freefall
|
||||
|
||||
# Tell kbuild to always build the programs
|
||||
always := $(hostprogs-y)
|
||||
|
|
|
|||
1
Documentation/mic/Makefile
Normal file
1
Documentation/mic/Makefile
Normal file
|
|
@ -0,0 +1 @@
|
|||
subdir-y := mpssd
|
||||
|
|
@ -1,19 +1,19 @@
|
|||
#
|
||||
# Makefile - Intel MIC User Space Tools.
|
||||
# Copyright(c) 2013, Intel Corporation.
|
||||
#
|
||||
# List of programs to build
|
||||
hostprogs-y := mpssd
|
||||
|
||||
mpssd-objs := mpssd.o sysfs.o
|
||||
|
||||
# Tell kbuild to always build the programs
|
||||
always := $(hostprogs-y)
|
||||
|
||||
HOSTCFLAGS += -I$(objtree)/usr/include -I$(srctree)/tools/include
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS += $(USERWARNFLAGS) -I. -g -Wall -DDEBUG=$(DEBUG)
|
||||
else
|
||||
CFLAGS += $(USERWARNFLAGS) -I. -g -Wall
|
||||
HOSTCFLAGS += -DDEBUG=$(DEBUG)
|
||||
endif
|
||||
|
||||
mpssd: mpssd.o sysfs.o
|
||||
$(CC) $(CFLAGS) -o $@ $^ -lpthread
|
||||
HOSTLOADLIBES_mpssd := -lpthread
|
||||
|
||||
install:
|
||||
install mpssd /usr/sbin/mpssd
|
||||
install micctrl /usr/sbin/micctrl
|
||||
|
||||
clean:
|
||||
rm -f mpssd *.o
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include "mpssd.h"
|
||||
#include <linux/mic_ioctl.h>
|
||||
#include <linux/mic_common.h>
|
||||
#include <tools/endian.h>
|
||||
|
||||
static void init_mic(struct mic_info *mic);
|
||||
|
||||
|
|
@ -1476,9 +1477,9 @@ set_cmdline(struct mic_info *mic)
|
|||
|
||||
len = snprintf(buffer, PATH_MAX,
|
||||
"clocksource=tsc highres=off nohz=off ");
|
||||
len += snprintf(buffer + len, PATH_MAX,
|
||||
len += snprintf(buffer + len, PATH_MAX - len,
|
||||
"cpufreq_on;corec6_off;pc3_off;pc6_off ");
|
||||
len += snprintf(buffer + len, PATH_MAX,
|
||||
len += snprintf(buffer + len, PATH_MAX - len,
|
||||
"ifcfg=static;address,172.31.%d.1;netmask,255.255.255.0",
|
||||
mic->id);
|
||||
|
||||
|
|
|
|||
1
Documentation/misc-devices/Makefile
Normal file
1
Documentation/misc-devices/Makefile
Normal file
|
|
@ -0,0 +1 @@
|
|||
subdir-y := mei
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue