mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
scripts: kernel-doc: Restore anonymous enum parsing
The commitd38c8cfb05
("scripts: kernel-doc: add support for typedef enum") broke anonymous enum parsing. Restore it by relying on members rather than its name. Fixes:d38c8cfb05
("scripts: kernel-doc: add support for typedef enum") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/20201102170637.36138-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
b65f3a9d6c
commit
ae5b17e464
@ -1390,7 +1390,7 @@ sub dump_enum($$) {
|
||||
$members = $2;
|
||||
}
|
||||
|
||||
if ($declaration_name) {
|
||||
if ($members) {
|
||||
my %_members;
|
||||
|
||||
$members =~ s/\s+$//;
|
||||
|
Loading…
Reference in New Issue
Block a user