Skip to content

Commit 58ad30c

Browse files
author
Jonathan Corbet
committed
docs: fix reference to core-api/namespaces.rst
Fix a couple of dangling links to core-api/namespaces.rst by turning them into proper references. Enable the autosection extension (available since Sphinx 1.4) to make this work. Co-developed-by: Federico Vaga <[email protected]> Fixes: fcfacb9 ("doc: move namespaces.rst from kbuild/ to core-api/") Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 7d3d325 commit 58ad30c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# ones.
3939
extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain',
4040
'kfigure', 'sphinx.ext.ifconfig', 'automarkup',
41-
'maintainers_include']
41+
'maintainers_include', 'sphinx.ext.autosectionlabel' ]
4242

4343
# The name of the math extension changed on Sphinx 1.4
4444
if (major == 1 and minor > 3) or (major > 1):

Documentation/kernel-hacking/hacking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ Defined in ``include/linux/export.h``
601601

602602
This is the variant of `EXPORT_SYMBOL()` that allows specifying a symbol
603603
namespace. Symbol Namespaces are documented in
604-
``Documentation/core-api/symbol-namespaces.rst``.
604+
:ref:`Documentation/core-api/symbol-namespaces.rst <Symbol Namespaces>`
605605

606606
:c:func:`EXPORT_SYMBOL_NS_GPL()`
607607
--------------------------------
@@ -610,7 +610,7 @@ Defined in ``include/linux/export.h``
610610

611611
This is the variant of `EXPORT_SYMBOL_GPL()` that allows specifying a symbol
612612
namespace. Symbol Namespaces are documented in
613-
``Documentation/core-api/symbol-namespaces.rst``.
613+
:ref:`Documentation/core-api/symbol-namespaces.rst <Symbol Namespaces>`
614614

615615
Routines and Conventions
616616
========================

0 commit comments

Comments
 (0)