mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 09:20:13 -04:00
doc-guide: kernel-doc: specify that W=n does not check header files
The documentation states that:
make W=n
can be used to verify the documentation format. This is true for .c
files but not for headers [1].
Modify the documentation to specify that headers files are not covered
by make W=n and that these need to be checked separately with
scripts/kernel-doc.
[1] commit 3a025e1d1c ("Add optional check for bad kernel-doc comments")
Link: https://git.kernel.org/torvalds/c/3a025e1d1c2e
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20251225-doc-format-check-v1-1-dff637a4d275@kernel.org>
This commit is contained in:
committed by
Jonathan Corbet
parent
5ce70894f6
commit
90f1d896d5
@@ -56,11 +56,14 @@ documentation comments. For example::
|
|||||||
|
|
||||||
scripts/kernel-doc -v -none drivers/foo/bar.c
|
scripts/kernel-doc -v -none drivers/foo/bar.c
|
||||||
|
|
||||||
The documentation format is verified by the kernel build when it is
|
The documentation format of ``.c`` files is also verified by the kernel build
|
||||||
requested to perform extra gcc checks::
|
when it is requested to perform extra gcc checks::
|
||||||
|
|
||||||
make W=n
|
make W=n
|
||||||
|
|
||||||
|
However, the above command does not verify header files. These should be checked
|
||||||
|
separately using ``kernel-doc``.
|
||||||
|
|
||||||
Function documentation
|
Function documentation
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user