From patchwork Sat Sep 19 10:59:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "liujian (CE)" X-Patchwork-Id: 11786957 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DE20C6CA for ; Sat, 19 Sep 2020 11:00:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CDCAB2192A for ; Sat, 19 Sep 2020 11:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726354AbgISLAX (ORCPT ); Sat, 19 Sep 2020 07:00:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34822 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726129AbgISLAW (ORCPT ); Sat, 19 Sep 2020 07:00:22 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BDB878E444167DD1CF8D; Sat, 19 Sep 2020 19:00:18 +0800 (CST) Received: from huawei.com (10.175.101.6) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Sat, 19 Sep 2020 19:00:11 +0800 From: Liu Jian To: , , , , , Subject: [PATCH net-netx] net: renesas: sh_eth: suppress initialized field overwritten warning Date: Sat, 19 Sep 2020 18:59:45 +0800 Message-ID: <20200919105945.251532-1-liujian56@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org 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 --- 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