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

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 <federico.vaga@vaga.pv.it>
Fixes: fcfacb9f8374 ("doc: move namespaces.rst from kbuild/ to core-api/")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

+3 -3
+1 -1
Documentation/conf.py
··· 38 38 # ones. 39 39 extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 40 40 'kfigure', 'sphinx.ext.ifconfig', 'automarkup', 41 - 'maintainers_include'] 41 + 'maintainers_include', 'sphinx.ext.autosectionlabel' ] 42 42 43 43 # The name of the math extension changed on Sphinx 1.4 44 44 if (major == 1 and minor > 3) or (major > 1):
+2 -2
Documentation/kernel-hacking/hacking.rst
··· 601 601 602 602 This is the variant of `EXPORT_SYMBOL()` that allows specifying a symbol 603 603 namespace. Symbol Namespaces are documented in 604 - ``Documentation/core-api/symbol-namespaces.rst``. 604 + :ref:`Documentation/core-api/symbol-namespaces.rst <Symbol Namespaces>` 605 605 606 606 :c:func:`EXPORT_SYMBOL_NS_GPL()` 607 607 -------------------------------- ··· 610 610 611 611 This is the variant of `EXPORT_SYMBOL_GPL()` that allows specifying a symbol 612 612 namespace. Symbol Namespaces are documented in 613 - ``Documentation/core-api/symbol-namespaces.rst``. 613 + :ref:`Documentation/core-api/symbol-namespaces.rst <Symbol Namespaces>` 614 614 615 615 Routines and Conventions 616 616 ========================