]> git.ipfire.org Git - thirdparty/linux.git/commit - scripts/kernel-doc
scripts/kernel-doc: warn on excess enum value descriptions
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Sep 2017 11:08:13 +0000 (13:08 +0200)
committerJonathan Corbet <corbet@lwn.net>
Tue, 26 Sep 2017 21:02:54 +0000 (15:02 -0600)
commit5cb5c31cdf246099f7d48a57f448b05b7941cd6a
tree70a91091bfb4b7893909710ed2c7b99ebb0b64e8
parent8a29896a6e31c7aa2ca3b50d8aefe05f280b0b7e
scripts/kernel-doc: warn on excess enum value descriptions

The existing message
"Excess struct/union/enum/typedef member [...]"
made it sound like this would already be done, but the
code is never invoked for enums or typedefs (and really
can't be).

Add some code to the enum dumper to handle this there
instead.

While at it, also make the above message more accurate
by simply dumping the type that was passed in, and pass
the struct/union differentiation in.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc