Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp674722ybz; Sat, 25 Apr 2020 01:53:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKqLydJ6/Am9+HSsw1OBg2ODu8kGALFoD7U0iWMpbNCRNMHaQaf6SkLj5nNpQSv09j9ASUz X-Received: by 2002:a50:c20a:: with SMTP id n10mr11359138edf.319.1587804798119; Sat, 25 Apr 2020 01:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587804798; cv=none; d=google.com; s=arc-20160816; b=vZIaW0JVbaYJGH0Fwd9ZSANBFNz45YokH29Af1LEw6IRkuwMwO1UpVZUge/AEbFom2 LkFUbnKA0boaIY2YcjXUagGrgKPd+8Nw0al9zSGaMWGu6QWsXoFTfV20ujrznrkhh5FE IA9ZZW/r+a1juvuT+PPFvN/3pgI7CZ5cDsf9dBHLQZtggyWaeJMJwYJEaR6GOeGsvgRh HvpU45dVh1vy7HG5/gyc3GqFMXyv7z57CwdJED9Bq236vXUKH5eAaSewyeHGIrUOudKX TCAcq6Xizilkaxptsnhk6tYrx40G/KInko56aX6WxB5fXO28yhyCEuOHHy8BYUeLiSE/ Equw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Qutt+dBgtYhczROBWHdsHYArXDiN03+XOm83Dx/7lCQ=; b=XWjQc2LBGSxXyHXd8gEobOXXMqVsoeoo+0yPtX2IkSXa+9+Kb8r+7wPc3yh/WeVWkL 2ZeixXBD4jIPAWIQdMO3mf/zncwa/5Ekm47DXSCEVld+8RXIXhqrLSEqCOJfgDGRE3Mu QW3sO1iRHC9pzpM3ojTUeNDas9PYlmaTiq9As9mRcylz/XKYLkQG8S0uvhxOTawVbXkb WC2sbA4JqYIuvdP+fYFL0Oh2pdHRVzBTJRtbDZnh7gBoXj9n1ud3eblVJdJJWdWcauty 4TYjBEH2zJqQiwggi+/a9Oe3CzftlCmIVcc1nBwL9Csyn901x020xbVFgGCOrT4+eSKr psqg== 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 df22si4943028edb.272.2020.04.25.01.52.54; Sat, 25 Apr 2020 01:53:18 -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 S1726132AbgDYIud (ORCPT + 99 others); Sat, 25 Apr 2020 04:50:33 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40366 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725837AbgDYIuc (ORCPT ); Sat, 25 Apr 2020 04:50:32 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 73750CDE3F05F8D7501A; Sat, 25 Apr 2020 16:50:30 +0800 (CST) Received: from huawei.com (10.67.174.156) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Sat, 25 Apr 2020 16:50:20 +0800 From: ChenTao To: , CC: , , , Subject: [PATCH] net: phy: bcm54140: Make a bunch of functions static Date: Sat, 25 Apr 2020 16:49:44 +0800 Message-ID: <20200425084944.152130-1-chentao107@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.156] 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 warning: drivers/net/phy/bcm54140.c:663:5: warning: symbol 'bcm54140_did_interrupt' was not declared. Should it be static? drivers/net/phy/bcm54140.c:672:5: warning: symbol 'bcm54140_ack_intr' was not declared. Should it be static? drivers/net/phy/bcm54140.c:684:5: warning: symbol 'bcm54140_config_intr' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: ChenTao --- drivers/net/phy/bcm54140.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/bcm54140.c b/drivers/net/phy/bcm54140.c index 7341f0126cc4..c009ac2856a5 100644 --- a/drivers/net/phy/bcm54140.c +++ b/drivers/net/phy/bcm54140.c @@ -660,7 +660,7 @@ static int bcm54140_config_init(struct phy_device *phydev) BCM54140_RDB_C_PWR_ISOLATE, 0); } -int bcm54140_did_interrupt(struct phy_device *phydev) +static int bcm54140_did_interrupt(struct phy_device *phydev) { int ret; @@ -669,7 +669,7 @@ int bcm54140_did_interrupt(struct phy_device *phydev) return (ret < 0) ? 0 : ret; } -int bcm54140_ack_intr(struct phy_device *phydev) +static int bcm54140_ack_intr(struct phy_device *phydev) { int reg; @@ -681,7 +681,7 @@ int bcm54140_ack_intr(struct phy_device *phydev) return 0; } -int bcm54140_config_intr(struct phy_device *phydev) +static int bcm54140_config_intr(struct phy_device *phydev) { struct bcm54140_priv *priv = phydev->priv; static const u16 port_to_imr_bit[] = { -- 2.22.0