Home
last modified time | relevance | path

Searched hist:"5 cb5c31c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/scripts/
H A Dkernel-doc5cb5c31c Tue Sep 19 06:08:13 CDT 2017 Johannes Berg <johannes.berg@intel.com> 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>
5cb5c31c Tue Sep 19 06:08:13 CDT 2017 Johannes Berg <johannes.berg@intel.com> 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>