diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-11-02 19:06:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 11:53:10 +0100 |
commit | 5c0aa48d046d2150c2510342ed45c8b84254f344 (patch) | |
tree | ea724c4ed43af6122f14eeab86e746d571db7d2f /scripts | |
parent | 7f1cae8e15a68be2724777356fb2aba4a592b39d (diff) | |
download | linux-stable-5c0aa48d046d2150c2510342ed45c8b84254f344.tar.gz linux-stable-5c0aa48d046d2150c2510342ed45c8b84254f344.tar.bz2 linux-stable-5c0aa48d046d2150c2510342ed45c8b84254f344.zip |
scripts: kernel-doc: Restore anonymous enum parsing
[ Upstream commit ae5b17e464146ddb8fee744fa2150922d6072916 ]
The commit d38c8cfb0571 ("scripts: kernel-doc: add support for typedef enum")
broke anonymous enum parsing. Restore it by relying on members rather than
its name.
Fixes: d38c8cfb0571 ("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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kernel-doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index f699cf05d409..9b6ddeb097e9 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1390,7 +1390,7 @@ sub dump_enum($$) { $members = $2; } - if ($declaration_name) { + if ($members) { my %_members; $members =~ s/\s+$//; |