Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1701175ybj; Wed, 6 May 2020 03:47:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJIjUnN9s1t90XR9JeY6i3kd2k7l3MbWRYVCRrrHQpm7akq5Sv3dw4J9T462bt8A8hmb99V X-Received: by 2002:a50:f61b:: with SMTP id c27mr5934611edn.256.1588762079356; Wed, 06 May 2020 03:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588762079; cv=none; d=google.com; s=arc-20160816; b=OZ/5r5j5dIoswKmmPtfjnH6xT+dwF4VI6CQxqV0wcGCsR2Gxzlk31sKakvGsbxWWP3 LstI7pJPpbsRP1b6Ci8UF/pQERaEBi9CmeBOGFB+vsHKztHPO/lYjCH/SQ4yXP8TNP0s 9ubw/i8Qvd3/AkQUVu3Y7qw/uGDtfj9NEnp1munadPwNhLZ/Zn29DmVtMm47llYitjw/ 7Q0iJmL80UvTq7/b8UQarRzmWkXnBODt4+jbqxVo39jP2L08ud3SFVgk8F0dOUiW0IZF BhToIGBruL2+uyY7rYDwnqE3yzJ0hnlAwfyVc16ibZigUDad1If4vz89JolDqyU/2Zbh OsDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Glww5tszI6g/O+URNaX7y8+UG9Pot84ugPRgrWeRd2M=; b=uvQgDw/krVB7EGQ7SySVcjN33WMKtbv9U6E+UWpXd1gKONSkDL4qqQlbQeJcEBHQi9 565JQIXv67Jl1B88M8bWF9+EPnzEjUr7NZR5dQz4z9zqHdqyAhK/s6w9PEJ17Lan1qTV xc+aslJenxilLXW52Ycbg1aYVfY0BIxOUK5P8zSnucurjQzvVedZkWJZ07MBt/NYoJcc EUgsHENZ0T34O13sepxPc3RDiPOohGjLcn0Br6l4PkrlTvoU+FDjwNDp1g/hAIyye7yr Qqvw16+dZYKiOqLgn+L2Lgxv/QmdOsgda+2GuQSULgtKtVrf6SpEsz4W4gaKyjpX27VV nX1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si796681edw.425.2020.05.06.03.47.37; Wed, 06 May 2020 03:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727930AbgEFGVb (ORCPT + 99 others); Wed, 6 May 2020 02:21:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3857 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726438AbgEFGVa (ORCPT ); Wed, 6 May 2020 02:21:30 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E8BFBC046390BB51FE86; Wed, 6 May 2020 14:21:28 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 14:21:19 +0800 From: Samuel Zou To: , , , , , CC: , , , , "Samuel Zou" Subject: [PATCH -next] net: ethernet: mediatek: Make mtk_m32 static Date: Wed, 6 May 2020 14:27:30 +0800 Message-ID: <1588746450-35911-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c:68:5: warning: symbol 'mtk_m32' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 0904710..2822268 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -65,7 +65,7 @@ u32 mtk_r32(struct mtk_eth *eth, unsigned reg) return __raw_readl(eth->base + reg); } -u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) +static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) { u32 val; -- 2.6.2