All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "linux-kbuild@vger.kernel.org" <linux-kbuild@vger.kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Nicolas Schier <nicolas@fjasle.eu>
Subject: [PATCH] correct disabling of -Wshift-negative-value
Date: Mon, 14 Apr 2025 16:23:36 +0200	[thread overview]
Message-ID: <10b1ebd8-5d32-41a2-9454-1b40e98d5187@suse.com> (raw)

The warning is supported only from gcc6 onwards, hence its disabling
needs probing that the (positive) option is actually supported.

Fixes: 1344794a59db ("Kbuild: add -Wno-shift-negative-value where -Wextra is used")
Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -154,7 +154,7 @@ else
 # The following turn off the warnings enabled by -Wextra
 KBUILD_CFLAGS += -Wno-missing-field-initializers
 KBUILD_CFLAGS += -Wno-type-limits
-KBUILD_CFLAGS += -Wno-shift-negative-value
+KBUILD_CFLAGS += $(call cc-disable-warning,shift-negative-value)
 
 ifdef CONFIG_CC_IS_CLANG
 KBUILD_CFLAGS += -Wno-enum-enum-conversion

             reply	other threads:[~2025-04-14 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-14 14:23 Jan Beulich [this message]
2025-04-14 19:38 ` [PATCH] correct disabling of -Wshift-negative-value Nathan Chancellor
2025-04-15  5:53   ` Jan Beulich
2025-04-15 21:15     ` Nathan Chancellor
2025-04-16  6:07       ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10b1ebd8-5d32-41a2-9454-1b40e98d5187@suse.com \
    --to=jbeulich@suse.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=nicolas@fjasle.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.