From patchwork Sun Sep 18 08:26:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76448 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp442087qgf; Sun, 18 Sep 2016 01:27:47 -0700 (PDT) X-Received: by 10.98.53.65 with SMTP id c62mr37170599pfa.66.1474187267475; Sun, 18 Sep 2016 01:27:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si21825028pfj.288.2016.09.18.01.27.47; Sun, 18 Sep 2016 01:27:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1754455AbcIRI1g (ORCPT + 4 others); Sun, 18 Sep 2016 04:27:36 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36500 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbcIRI1e (ORCPT ); Sun, 18 Sep 2016 04:27:34 -0400 Received: by mail-pf0-f171.google.com with SMTP id q2so20603676pfj.3 for ; Sun, 18 Sep 2016 01:27:34 -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=5gYBJHbL+nLjelnCGgt5s3Psufw4ZIsqd1F+GxdC2rQ=; b=Pb4qDA2RWZzTWyWlp8iE2pqCTchLkaVKqnJ+muG3Tx4fOZ3hWUEbz+8wyugq7hOs2i EBo1OhjnH1NkPLr/3cwK5zwCtk6jRxwKsJz8sVxarLeJ/JFiXdljvydRbc+5515yh9W3 U9Ii4taTg6VXrae8GYMV0OO+xA/IM4e7SSTM8= 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=5gYBJHbL+nLjelnCGgt5s3Psufw4ZIsqd1F+GxdC2rQ=; b=RUuPx+ikLmOV/h4FhfdgqohibA2DlR2UDmuXmGtlgvJAzYoQ3RfzIHNfS8VVzDt1DL /i25tHhgK9ashZrrZISwxR+NV5swwiNrQx00TOrT46rBGZjsV3ydKPq9HN6Zl5xQ0H0c 0znAPlaFer9GN8qxe7Hp2wZUEYlvvV7f8q8YPr711r5CvxROTEVHn2FG/x42r4Qh3X1d AuoXC/nqh9hlPBu/mcw/ooUJSL/nQqyLsTaimFuA1qSipsN5rfTy3UiS0QTruQwMTHJ0 6CHAO/DAaBl2oYJMNIySpKiAocpVTwWsiKE4FmqCc66ZR0AlLERoAj4a8lbVGFAsmaiy chBA== X-Gm-Message-State: AE9vXwPHzQ5XuBZlsxu8PIZCQoLg95SXLBaKe8HuPz4kmrrQ4JcZS/u/1dO5VoOdvVDkr/tN X-Received: by 10.98.27.11 with SMTP id b11mr36811600pfb.111.1474187253776; Sun, 18 Sep 2016 01:27:33 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id z187sm63180001pfz.39.2016.09.18.01.27.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 01:27:33 -0700 (PDT) From: Baoyou Xie To: f.fainelli@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] phy: mark lan88xx_suspend() static Date: Sun, 18 Sep 2016 16:26:34 +0800 Message-Id: <1474187194-21322-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/net/phy/microchip.c:58:5: warning: no previous prototype for 'lan88xx_suspend' [-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/phy/microchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/phy/microchip.c b/drivers/net/phy/microchip.c index 15f8206..7c00e50 100644 --- a/drivers/net/phy/microchip.c +++ b/drivers/net/phy/microchip.c @@ -55,7 +55,7 @@ static int lan88xx_phy_ack_interrupt(struct phy_device *phydev) return rc < 0 ? rc : 0; } -int lan88xx_suspend(struct phy_device *phydev) +static int lan88xx_suspend(struct phy_device *phydev) { struct lan88xx_priv *priv = phydev->priv;