lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <70AA6123A55FEA70+20250507054705.1196184-1-wangyuli@uniontech.com>
Date: Wed,  7 May 2025 13:47:05 +0800
From: WangYuli <wangyuli@...ontech.com>
To: masahiroy@...nel.org,
	nathan@...nel.org,
	nicolas.schier@...ux.dev
Cc: linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	zhanjun@...ontech.com,
	niecheng1@...ontech.com,
	guanwentao@...ontech.com,
	WangYuli <wangyuli@...ontech.com>
Subject: [PATCH] extrawarn: Use cc-disable-warning for shift-negative-value

The -Wno-shift-negative-value option is not supported by GCC 5.4.0.

This could potentially result in extra warnings under certain
circumstances.

Utilize cc-disable-warning to prevent the following from occurring:
  mm/vmscan.c: At top level:
  cc1: error: unrecognized command line option ‘-Wno-shift-negative-value’ [-Werror]
  cc1: all warnings being treated as errors

Link: https://lore.kernel.org/all/62726950F697595A+20250507040827.1147510-1-wangyuli@uniontech.com/
Signed-off-by: WangYuli <wangyuli@...ontech.com>
---
 scripts/Makefile.extrawarn | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index d88acdf40855..375475e7b3bd 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -158,7 +158,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
-- 
2.49.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ