Re: [PATCH 1/4] [v4] Kbuild: add -Wno-shift-negative-value where -Wextra is used

From
David Sterba <hidden>
Date
2022-03-09 17:04:29
Also in
linux-kbuild, lkml, llvm
Reply to
Arnd Bergmann, 2022-03-08
On Tue, Mar 08, 2022 at 10:56:12PM +0100, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

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>
---
[v4]
  split into a separate patch
---
 drivers/gpu/drm/i915/Makefile          | 1 +
 drivers/staging/greybus/tools/Makefile | 3 ++-
For
 fs/btrfs/Makefile                      | 1 +
Acked-by: David Sterba <dsterba@suse.com>
Thread (12 messages) 12 messages, 7 authors, last reply 2022-03-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help