diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2018-02-20 13:36:25 -0500 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2018-02-23 10:06:15 -0500 |
commit | 8fcce5803afd4615188fb7017f1d4c6404ca647e (patch) | |
tree | eb603feaf43aaba2cf5c5c6165bbf6133502a9e6 /Documentation/doc-guide | |
parent | 29b26ae47031e5c8d6cd4ad20b3eaac79c3bf017 (diff) |
doc-guide: kernel-doc: add comment about formatting verification
Currently there is no automated checking for kernel-doc comments except
running 'kernel-doc -v -none <filename>'. Mention the possibility to run
kernel-doc to verify formatting of the comments in the kernel-doc guide.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/doc-guide')
-rw-r--r-- | Documentation/doc-guide/kernel-doc.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst index c6c329708d8a..80383b1a574a 100644 --- a/Documentation/doc-guide/kernel-doc.rst +++ b/Documentation/doc-guide/kernel-doc.rst | |||
@@ -44,6 +44,17 @@ that somebody changing the code will also change the documentation. The | |||
44 | overview kernel-doc comments may be placed anywhere at the top indentation | 44 | overview kernel-doc comments may be placed anywhere at the top indentation |
45 | level. | 45 | level. |
46 | 46 | ||
47 | Running the ``kernel-doc`` tool with increased verbosity and without actual | ||
48 | output generation may be used to verify proper formatting of the | ||
49 | documentation comments. For example:: | ||
50 | |||
51 | scripts/kernel-doc -v -none drivers/foo/bar.c | ||
52 | |||
53 | The documentation format is verified by the kernel build when it is | ||
54 | requested to perform extra gcc checks:: | ||
55 | |||
56 | make W=n | ||
57 | |||
47 | Function documentation | 58 | Function documentation |
48 | ---------------------- | 59 | ---------------------- |
49 | 60 | ||