Skip to content

Commit

Permalink
scripts: kernel-doc: Restore anonymous enum parsing
Browse files Browse the repository at this point in the history
[ Upstream commit ae5b17e ]

The commit d38c8cf ("scripts: kernel-doc: add support for typedef enum")
broke anonymous enum parsing. Restore it by relying on members rather than
its name.

Fixes: d38c8cf ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
andy-shev authored and gregkh committed Dec 30, 2020
1 parent 7f1cae8 commit 5c0aa48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kernel-doc
Expand Up @@ -1390,7 +1390,7 @@ sub dump_enum($$) {
$members = $2;
}

if ($declaration_name) {
if ($members) {
my %_members;

$members =~ s/\s+$//;
Expand Down

0 comments on commit 5c0aa48

Please sign in to comment.