OSDN Git Service

scripts/kernel-doc: ignore identifier on anonymous enums
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 3 Mar 2021 08:42:14 +0000 (09:42 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 9 Mar 2021 00:10:24 +0000 (17:10 -0700)
commit0b54c2e34be7987b5e0ffc0aa0e7dced7301cc1f
tree582143e3da1af00809649c641143ead33062d73b
parente85d92b3bc3b7062f18b24092a65ec427afa8148
scripts/kernel-doc: ignore identifier on anonymous enums

When anonymous enums are used, the identifier is empty.

While, IMO, it should be avoided the usage of such enums,
adding support for it is not hard.

So, postpone the check for empty identifiers to happen
only at the dump phase.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/055ad57879f1b9381b90879e00f72fde1c3a5647.1614760910.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc