Skip to content

docs: add support for :nosymbols:

Sean Christopherson linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kernel-doc: Revert "scripts/kernel-doc: Processing -nofunc for functions only"scripts/kernel-doc+4 -31 reply
2/4kernel-doc: Rename -nofunction option to -nosymbolscripts/kernel-doc+4 -40 replies
3/4kernel-doc: Rename -function to -symbolDocumentation/sphinx/kerneldoc.py scripts/kernel-doc+6 -62 replies
4/4docs: sphinx: Add support :nosymbols: to exclude specific symbolsDocumentation/sphinx/kerneldoc.py+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] docs: add support for :nosymbols:

Linux's kernel-doc directive for Sphinx allows .rst files to selectively include "functions", i.e. symbols, but does not allow .rst files to explicitly exclude symbols. The actual kernel-doc script already supports excluding symbols, i.e. most of the plumbing is in place, but needs a bit of cleanup to get things working.

The intended user of this is SGX, which introduces a uapi header that defines structs for ioctls and for a new vDSO function. Ideally, the documentation for the vDSO struct will be placed into a different section.

I'm sending this as a standalone series as the SGX patch set is already ridiculously big[1], but I can fold these patches into the SGX series if that's preferred.

[1] https://lkml.kernel.org/r/[email protected]

Sean Christopherson (4):
kernel-doc: Revert "scripts/kernel-doc: Processing -nofunc for
functions only"
kernel-doc: Rename -nofunction option to -nosymbol
kernel-doc: Rename -function to -symbol
docs: sphinx: Add support :nosymbols: to exclude specific symbols

 Documentation/sphinx/kerneldoc.py |  9 +++++++--
 scripts/kernel-doc                | 19 ++++++++++---------
 2 files changed, 17 insertions(+), 11 deletions(-)
Signature · 1 line
2.21.0