From patchwork Tue Sep 6 08:21:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75480 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp426209qgf; Tue, 6 Sep 2016 01:22:20 -0700 (PDT) X-Received: by 10.66.156.72 with SMTP id wc8mr69894613pab.53.1473150140852; Tue, 06 Sep 2016 01:22:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id to3si16007785pab.40.2016.09.06.01.22.20; Tue, 06 Sep 2016 01:22:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933244AbcIFIWQ (ORCPT + 27 others); Tue, 6 Sep 2016 04:22:16 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:33318 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932461AbcIFIWN (ORCPT ); Tue, 6 Sep 2016 04:22:13 -0400 Received: by mail-pa0-f49.google.com with SMTP id cm16so21499947pac.0 for ; Tue, 06 Sep 2016 01:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=mnnQNV4/FWWsLqmaG4uy8IMEByUbNiMTDZenVz6t0aE=; b=EvD6+ajRCasiy9L5y+fZ6iLK1nx8DRh6OzDibdO3xAFYW15D/1U61LMSyazJlfxG0p x16JedNatgWlIaBNiNSsi1oekOCdX2HZ/1kaOuNdWUMsk4bTb8Yj6DWae4phd++qNjLz prMgTds6GuzyE+DpppOtY9X7TCXsJrQ0zUWE0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mnnQNV4/FWWsLqmaG4uy8IMEByUbNiMTDZenVz6t0aE=; b=NCudVP2pehQ2cR/0skGH+UOdk4Ld/eEAew5YkzQqxTrIvkYQ40JEU4tDjm1Zxhm3iR vErm8kvco1aMaqn5ypntrJfj/wIJM3oheZuMHT8p0bLxZkFA78xz7n7R0XCMsb+qcYdZ gwnzk7FFsbM7hnxLnIPzWwg4JRR+vxGOKeLi/P95gPI1yQd3KLBpu7xDykwn6Xyb5DmP DerMdLZRmg7k/wIFTnVXECpMM197q3IxeQbEd6NyZCLIAaRd95fNlG+gAFk6wJcgC4U3 xXifmvdXYF6D/pracFYX1FrAl5+Q90gJDt3PeoFQ9Xb45ZxSw/2jY04+lc9+JLnNr65g MbEA== X-Gm-Message-State: AE9vXwPuSveQlTA2orGdXy2HJID1cX5pGXFHjF83djBZsnIC0VMVbMCyYU9AvAZlyBh6c/nM X-Received: by 10.66.253.7 with SMTP id zw7mr69752024pac.25.1473150132532; Tue, 06 Sep 2016 01:22:12 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.17]) by smtp.gmail.com with ESMTPSA id v124sm38766416pfb.14.2016.09.06.01.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Sep 2016 01:22:12 -0700 (PDT) From: Baoyou Xie To: davem@davemloft.net, wxt@rock-chips.com, heiko@sntech.de, marex@denx.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] net: arc_emac: mark arc_mdio_reset() static Date: Tue, 6 Sep 2016 16:21:56 +0800 Message-Id: <1473150116-26226-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/net/ethernet/arc/emac_mdio.c:107:5: warning: no previous prototype for 'arc_mdio_reset' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. so this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/net/ethernet/arc/emac_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/arc/emac_mdio.c b/drivers/net/ethernet/arc/emac_mdio.c index 058460b..a22403c 100644 --- a/drivers/net/ethernet/arc/emac_mdio.c +++ b/drivers/net/ethernet/arc/emac_mdio.c @@ -104,7 +104,7 @@ static int arc_mdio_write(struct mii_bus *bus, int phy_addr, * @bus: points to the mii_bus structure * Description: reset the MII bus */ -int arc_mdio_reset(struct mii_bus *bus) +static int arc_mdio_reset(struct mii_bus *bus) { struct arc_emac_priv *priv = bus->priv; struct arc_emac_mdio_bus_data *data = &priv->bus_data;