aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2016-09-01 10:56:20 -0400
committerJonathan Corbet <corbet@lwn.net>2016-09-01 10:56:20 -0400
commit87171fb72995577c43ea932ff277c2151648da47 (patch)
tree5fe4079aa96bf9a47a31a4518f93959129541e0c
parent8d8f60c5e0cdc05bd9785faffd1cc034acdcd6d6 (diff)
parent951499710be258b85c135ee1f7ebe5f7a4b7ac91 (diff)
Merge branch 'doc/4.9' into docs-next
-rw-r--r--Documentation/Makefile.sphinx4
-rw-r--r--Documentation/kernel-parameters.txt20
-rw-r--r--Documentation/media/conf.py5
-rw-r--r--Documentation/sphinx/kernel-doc.py8
-rwxr-xr-xDocumentation/sphinx/kernel_include.py7
-rwxr-xr-x[-rw-r--r--]Documentation/sphinx/rstFlatTable.py6
-rwxr-xr-xscripts/kernel-doc40
7 files changed, 69 insertions, 21 deletions
diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx
index 894cfaa41f55..92deea30b183 100644
--- a/Documentation/Makefile.sphinx
+++ b/Documentation/Makefile.sphinx
@@ -71,12 +71,12 @@ ifeq ($(HAVE_PDFLATEX),0)
71 $(warning The 'xelatex' command was not found. Make sure you have it installed and in PATH to produce PDF output.) 71 $(warning The 'xelatex' command was not found. Make sure you have it installed and in PATH to produce PDF output.)
72 @echo " SKIP Sphinx $@ target." 72 @echo " SKIP Sphinx $@ target."
73else # HAVE_PDFLATEX 73else # HAVE_PDFLATEX
74 @$(call loop_cmd,sphinx,latex,.,latex,.) 74 @$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,latex,$(var),latex,$(var)))
75endif # HAVE_PDFLATEX 75endif # HAVE_PDFLATEX
76 76
77pdfdocs: latexdocs 77pdfdocs: latexdocs
78ifneq ($(HAVE_PDFLATEX),0) 78ifneq ($(HAVE_PDFLATEX),0)
79 $(Q)$(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/latex 79 $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex)
80endif # HAVE_PDFLATEX 80endif # HAVE_PDFLATEX
81 81
82epubdocs: 82epubdocs:
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 20557efa8bce..1fa28092ec00 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -2161,10 +2161,13 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
2161 than or equal to this physical address is ignored. 2161 than or equal to this physical address is ignored.
2162 2162
2163 maxcpus= [SMP] Maximum number of processors that an SMP kernel 2163 maxcpus= [SMP] Maximum number of processors that an SMP kernel
2164 should make use of. maxcpus=n : n >= 0 limits the 2164 will bring up during bootup. maxcpus=n : n >= 0 limits
2165 kernel to using 'n' processors. n=0 is a special case, 2165 the kernel to bring up 'n' processors. Surely after
2166 it is equivalent to "nosmp", which also disables 2166 bootup you can bring up the other plugged cpu by executing
2167 the IO APIC. 2167 "echo 1 > /sys/devices/system/cpu/cpuX/online". So maxcpus
2168 only takes effect during system bootup.
2169 While n=0 is a special case, it is equivalent to "nosmp",
2170 which also disables the IO APIC.
2168 2171
2169 max_loop= [LOOP] The number of loop block devices that get 2172 max_loop= [LOOP] The number of loop block devices that get
2170 (loop.max_loop) unconditionally pre-created at init time. The default 2173 (loop.max_loop) unconditionally pre-created at init time. The default
@@ -2773,9 +2776,12 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
2773 2776
2774 nr_cpus= [SMP] Maximum number of processors that an SMP kernel 2777 nr_cpus= [SMP] Maximum number of processors that an SMP kernel
2775 could support. nr_cpus=n : n >= 1 limits the kernel to 2778 could support. nr_cpus=n : n >= 1 limits the kernel to
2776 supporting 'n' processors. Later in runtime you can not 2779 support 'n' processors. It could be larger than the
2777 use hotplug cpu feature to put more cpu back to online. 2780 number of already plugged CPU during bootup, later in
2778 just like you compile the kernel NR_CPUS=n 2781 runtime you can physically add extra cpu until it reaches
2782 n. So during boot up some boot time memory for per-cpu
2783 variables need be pre-allocated for later physical cpu
2784 hot plugging.
2779 2785
2780 nr_uarts= [SERIAL] maximum number of UARTs to be registered. 2786 nr_uarts= [SERIAL] maximum number of UARTs to be registered.
2781 2787
diff --git a/Documentation/media/conf.py b/Documentation/media/conf.py
index 77cb2bbd9461..bef927bc4659 100644
--- a/Documentation/media/conf.py
+++ b/Documentation/media/conf.py
@@ -3,3 +3,8 @@
3project = 'Linux Media Subsystem Documentation' 3project = 'Linux Media Subsystem Documentation'
4 4
5tags.add("subproject") 5tags.add("subproject")
6
7latex_documents = [
8 ('index', 'media.tex', 'Linux Media Subsystem Documentation',
9 'The kernel development community', 'manual'),
10]
diff --git a/Documentation/sphinx/kernel-doc.py b/Documentation/sphinx/kernel-doc.py
index f6920c0af6ee..d15e07f36881 100644
--- a/Documentation/sphinx/kernel-doc.py
+++ b/Documentation/sphinx/kernel-doc.py
@@ -39,6 +39,8 @@ from docutils.parsers.rst import directives
39from sphinx.util.compat import Directive 39from sphinx.util.compat import Directive
40from sphinx.ext.autodoc import AutodocReporter 40from sphinx.ext.autodoc import AutodocReporter
41 41
42__version__ = '1.0'
43
42class KernelDocDirective(Directive): 44class KernelDocDirective(Directive):
43 """Extract kernel-doc comments from the specified file""" 45 """Extract kernel-doc comments from the specified file"""
44 required_argument = 1 46 required_argument = 1
@@ -139,3 +141,9 @@ def setup(app):
139 app.add_config_value('kerneldoc_verbosity', 1, 'env') 141 app.add_config_value('kerneldoc_verbosity', 1, 'env')
140 142
141 app.add_directive('kernel-doc', KernelDocDirective) 143 app.add_directive('kernel-doc', KernelDocDirective)
144
145 return dict(
146 version = __version__,
147 parallel_read_safe = True,
148 parallel_write_safe = True
149 )
diff --git a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py
index db5738238733..f523aa68a36b 100755
--- a/Documentation/sphinx/kernel_include.py
+++ b/Documentation/sphinx/kernel_include.py
@@ -39,11 +39,18 @@ from docutils.parsers.rst import directives
39from docutils.parsers.rst.directives.body import CodeBlock, NumberLines 39from docutils.parsers.rst.directives.body import CodeBlock, NumberLines
40from docutils.parsers.rst.directives.misc import Include 40from docutils.parsers.rst.directives.misc import Include
41 41
42__version__ = '1.0'
43
42# ============================================================================== 44# ==============================================================================
43def setup(app): 45def setup(app):
44# ============================================================================== 46# ==============================================================================
45 47
46 app.add_directive("kernel-include", KernelInclude) 48 app.add_directive("kernel-include", KernelInclude)
49 return dict(
50 version = __version__,
51 parallel_read_safe = True,
52 parallel_write_safe = True
53 )
47 54
48# ============================================================================== 55# ==============================================================================
49class KernelInclude(Include): 56class KernelInclude(Include):
diff --git a/Documentation/sphinx/rstFlatTable.py b/Documentation/sphinx/rstFlatTable.py
index 26db852e3c74..55f275793028 100644..100755
--- a/Documentation/sphinx/rstFlatTable.py
+++ b/Documentation/sphinx/rstFlatTable.py
@@ -73,6 +73,12 @@ def setup(app):
73 roles.register_local_role('cspan', c_span) 73 roles.register_local_role('cspan', c_span)
74 roles.register_local_role('rspan', r_span) 74 roles.register_local_role('rspan', r_span)
75 75
76 return dict(
77 version = __version__,
78 parallel_read_safe = True,
79 parallel_write_safe = True
80 )
81
76# ============================================================================== 82# ==============================================================================
77def c_span(name, rawtext, text, lineno, inliner, options=None, content=None): 83def c_span(name, rawtext, text, lineno, inliner, options=None, content=None):
78# ============================================================================== 84# ==============================================================================
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index ba081c7636a2..301bf874cac8 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1831,13 +1831,22 @@ sub output_function_rst(%) {
1831 my %args = %{$_[0]}; 1831 my %args = %{$_[0]};
1832 my ($parameter, $section); 1832 my ($parameter, $section);
1833 my $oldprefix = $lineprefix; 1833 my $oldprefix = $lineprefix;
1834 my $start; 1834 my $start = "";
1835 1835
1836 print ".. c:function:: "; 1836 if ($args{'typedef'}) {
1837 print ".. c:type:: ". $args{'function'} . "\n\n";
1838 print_lineno($declaration_start_line);
1839 print " **Typedef**: ";
1840 $lineprefix = "";
1841 output_highlight_rst($args{'purpose'});
1842 $start = "\n\n**Syntax**\n\n ``";
1843 } else {
1844 print ".. c:function:: ";
1845 }
1837 if ($args{'functiontype'} ne "") { 1846 if ($args{'functiontype'} ne "") {
1838 $start = $args{'functiontype'} . " " . $args{'function'} . " ("; 1847 $start .= $args{'functiontype'} . " " . $args{'function'} . " (";
1839 } else { 1848 } else {
1840 $start = $args{'function'} . " ("; 1849 $start .= $args{'function'} . " (";
1841 } 1850 }
1842 print $start; 1851 print $start;
1843 1852
@@ -1856,11 +1865,15 @@ sub output_function_rst(%) {
1856 print $type . " " . $parameter; 1865 print $type . " " . $parameter;
1857 } 1866 }
1858 } 1867 }
1859 print ")\n\n"; 1868 if ($args{'typedef'}) {
1860 print_lineno($declaration_start_line); 1869 print ");``\n\n";
1861 $lineprefix = " "; 1870 } else {
1862 output_highlight_rst($args{'purpose'}); 1871 print ")\n\n";
1863 print "\n"; 1872 print_lineno($declaration_start_line);
1873 $lineprefix = " ";
1874 output_highlight_rst($args{'purpose'});
1875 print "\n";
1876 }
1864 1877
1865 print "**Parameters**\n\n"; 1878 print "**Parameters**\n\n";
1866 $lineprefix = " "; 1879 $lineprefix = " ";
@@ -2000,7 +2013,7 @@ sub output_struct_rst(%) {
2000 ($args{'parameterdescs'}{$parameter_name} ne $undescribed) || next; 2013 ($args{'parameterdescs'}{$parameter_name} ne $undescribed) || next;
2001 $type = $args{'parametertypes'}{$parameter}; 2014 $type = $args{'parametertypes'}{$parameter};
2002 print_lineno($parameterdesc_start_lines{$parameter_name}); 2015 print_lineno($parameterdesc_start_lines{$parameter_name});
2003 print "``$type $parameter``\n"; 2016 print "``" . $parameter . "``\n";
2004 output_highlight_rst($args{'parameterdescs'}{$parameter_name}); 2017 output_highlight_rst($args{'parameterdescs'}{$parameter_name});
2005 print "\n"; 2018 print "\n";
2006 } 2019 }
@@ -2190,7 +2203,9 @@ sub dump_typedef($$) {
2190 $x =~ s@/\*.*?\*/@@gos; # strip comments. 2203 $x =~ s@/\*.*?\*/@@gos; # strip comments.
2191 2204
2192 # Parse function prototypes 2205 # Parse function prototypes
2193 if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/) { 2206 if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/ ||
2207 $x =~ /typedef\s+(\w+)\s*(\w\S+)\s*\s*\((.*)\);/) {
2208
2194 # Function typedefs 2209 # Function typedefs
2195 $return_type = $1; 2210 $return_type = $1;
2196 $declaration_name = $2; 2211 $declaration_name = $2;
@@ -2201,6 +2216,7 @@ sub dump_typedef($$) {
2201 output_declaration($declaration_name, 2216 output_declaration($declaration_name,
2202 'function', 2217 'function',
2203 {'function' => $declaration_name, 2218 {'function' => $declaration_name,
2219 'typedef' => 1,
2204 'module' => $modulename, 2220 'module' => $modulename,
2205 'functiontype' => $return_type, 2221 'functiontype' => $return_type,
2206 'parameterlist' => \@parameterlist, 2222 'parameterlist' => \@parameterlist,