scripts: kernel_doc: better handle show warnings logic
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 31 Dec 2017 00:32:55 +0000 (22:32 -0200)
committerJonathan Corbet <corbet@lwn.net>
Mon, 1 Jan 2018 19:49:07 +0000 (12:49 -0700)
commit85afe608f5f3c10134e94c8aa87d9f9eecd81622
treeeea515048d4cd04d21ed113de2f2062b431b7f2f
parent91581e4c60db35268ad67c550f5c551045f592f5
scripts: kernel_doc: better handle show warnings logic

The logic with inhibits warnings for definitions that is not
output is incomplete: it doesn't cover the cases where
OUTPUT_INTERNAL and OUTPUT_EXPORTED are used.

As the most common case is OUTPUT_ALL, place it first,
in order to optimize a litte bit the check logic.

Fixes: 2defb2729217 ("scripts: kernel-doc: apply filtering rules to warnings")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-and-Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc