kbuild: avoid duplicate warning options
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Aug 2023 14:03:21 +0000 (16:03 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 20 Aug 2023 05:16:57 +0000 (14:16 +0900)
commit2cd3271b7a310b1199aa36bfd536ca67d3c2d5f2
tree39db659effdba7811bb26c90677b3f6a77208323
parente88ca24319e427a685a2e9e3a124ad5beca01158
kbuild: avoid duplicate warning options

Some warning options are disabled at one place and then conditionally
re-enabled later in scripts/Makefile.extrawarn.

For consistency, rework this file so each of those warnings only
gets etiher enabled or disabled based on the W= flags but not both.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.extrawarn