summaryrefslogtreecommitdiffstats
path: root/scripts/Kbuild.include
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-10-18 06:07:27 +0200
committerJonathan Corbet <corbet@lwn.net>2018-10-18 20:20:35 +0200
commitcf419d542f1d3de80034ebb0462d9ed9b1ae9277 (patch)
tree2cee430e2355e51601584832079956360fcc6b32 /scripts/Kbuild.include
parentdoc: fix a typo in adding-syscalls.rst (diff)
downloadlinux-cf419d542f1d3de80034ebb0462d9ed9b1ae9277.tar.xz
linux-cf419d542f1d3de80034ebb0462d9ed9b1ae9277.zip
kernel-doc: fix declaration type determination
Make declaration type determination more robust. When scripts/kernel-doc is deciding if some kernel-doc notation contains an enum, a struct, a union, a typedef, or a function, it does a pattern match on the beginning of the string, looking for a match with one of "struct", "union", "enum", or "typedef", and otherwise defaults to a function declaration type. However, if a function or a function-like macro has a name that begins with "struct" (e.g., struct_size()), then kernel-doc incorrectly decides that this is a struct declaration. Fix this by looking for the declaration type keywords having an ending word boundary (\b), so that "struct_size" will not match a struct declaration. I compared lots of html before/after output from core-api, driver-api, and networking. There were no differences in any of the files that I checked. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Jani Nikula <jani.nikula@intel.com> Tested-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/Kbuild.include')
0 files changed, 0 insertions, 0 deletions