Kbuild: add -Wno-shift-negative-value where -Wextra is used
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Mar 2022 21:56:12 +0000 (22:56 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 13 Mar 2022 08:30:31 +0000 (17:30 +0900)
commit1344794a59db2bd44b4919d2d75300fd3b1c2cd7
tree74bf9a6d3894432e7251919fa6b80dd099af00cd
parent754e0b0e35608ed5206d6a67a791563c631cec07
Kbuild: add -Wno-shift-negative-value where -Wextra is used

As a preparation for moving to -std=gnu11, turn off the
-Wshift-negative-value option. This warning is enabled by gcc when
building with -Wextra for c99 or higher, but not for c89. Since
the kernel already relies on well-defined overflow behavior,
the warning is not helpful and can simply be disabled in
all locations that use -Wextra.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM/Clang v13.0.0 (x86-64)
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
drivers/gpu/drm/i915/Makefile
drivers/staging/greybus/tools/Makefile
fs/btrfs/Makefile
scripts/Makefile.extrawarn