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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200919105945.251532-1-liujian56@huawei.com>
Date:   Sat, 19 Sep 2020 18:59:45 +0800
From:   Liu Jian <liujian56@...wei.com>
To:     <sergei.shtylyov@...il.com>, <davem@...emloft.net>,
        <kuba@...nel.org>, <liujian56@...wei.com>,
        <netdev@...r.kernel.org>, <linux-renesas-soc@...r.kernel.org>
Subject: [PATCH net-netx] net: renesas: sh_eth: suppress initialized field overwritten warning

Suppress a bunch of warnings of the form:

drivers/net/ethernet/renesas/sh_eth.c:100:13: warning: initialized field overwritten [-Woverride-init]

This is because after the sh_eth_offset_xxx array is initialized to SH_ETH_OFFSET_INVALID,
some specific register_offsets are re-initialized. It wasn't a mistake.

Signed-off-by: Liu Jian <liujian56@...wei.com>
---
 drivers/net/ethernet/renesas/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/renesas/Makefile b/drivers/net/ethernet/renesas/Makefile
index f21ab8c02af0..ccb8521d190b 100644
--- a/drivers/net/ethernet/renesas/Makefile
+++ b/drivers/net/ethernet/renesas/Makefile
@@ -3,6 +3,7 @@
 # Makefile for the Renesas device drivers.
 #
 
+CFLAGS_sh_eth.o += -Wno-override-init
 obj-$(CONFIG_SH_ETH) += sh_eth.o
 
 ravb-objs := ravb_main.o ravb_ptp.o
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ