From patchwork Sun Sep 25 09:19:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76973 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp652652qgf; Sun, 25 Sep 2016 02:19:25 -0700 (PDT) X-Received: by 10.98.200.4 with SMTP id z4mr27595004pff.95.1474795165702; Sun, 25 Sep 2016 02:19:25 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n125si18495016pfn.267.2016.09.25.02.19.25; Sun, 25 Sep 2016 02:19:25 -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 S965780AbcIYJTW (ORCPT + 4 others); Sun, 25 Sep 2016 05:19:22 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33616 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965729AbcIYJTU (ORCPT ); Sun, 25 Sep 2016 05:19:20 -0400 Received: by mail-pf0-f176.google.com with SMTP id 21so55610941pfy.0 for ; Sun, 25 Sep 2016 02:19:19 -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=BFGIncsfyCv+QI5Dr64JCrAotco/gsIamf214T11Q+s=; b=iqyT9SSdBwIBy3mE8aLwj6cDCFJsiNLL8VXWB6hgw/xHqS90rcVeFlv0P+eMaNsSiv p7k9WoflSmjYVggSJ5o0bNO+pc91IDAzg96/b0XGFSJy4gKGKCwjic/pLXZi/gQhAI8S WXKUz6+n6RxxkdXYBDtZmsDlK0cfLavsDP/MQ= 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=BFGIncsfyCv+QI5Dr64JCrAotco/gsIamf214T11Q+s=; b=idZiznnwn3/nKLC8dudJAZJxWzARu00eOKokukFPXj/+y1vXUl9JrvwU6Z0qJdFXyY 31aQov0PS2T0k1KiXJzHfcb6W1A2tjNgjwK9cYIt3H72a+d2Sf1TN5yv6tHggAanyVwj ZjciE0CpslZXemihP5Kz/YjJ+d1767gcIW6XwA10KM6GSbmzjEShZomZsPIzMdfCoZOB 0jGGR81ejg3C7ixV+vih8B6gTDIeNEFEbwz3r/1MWJqPBO7fADvQhv8ZccOQl/NUxD69 6RW7//OCj/6aQne53EBVoMvZDEcfKYSpYfQf89plvWtXvhyZKSrhmNQ8bM+f8ygBogKG 61dg== X-Gm-Message-State: AE9vXwMmIi+YL1Cuu90GoWIGustexaA5ROYnZSoReL0Hau/cBjQ2A/pl7pYxwMpwfBJEz/Lh X-Received: by 10.98.197.1 with SMTP id j1mr28589646pfg.77.1474795159420; Sun, 25 Sep 2016 02:19:19 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id s74sm10266055pfs.44.2016.09.25.02.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 02:19:18 -0700 (PDT) From: Baoyou Xie To: yisen.zhuang@huawei.com, salil.mehta@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] net: hip04: mark tx_done() static Date: Sun, 25 Sep 2016 17:19:04 +0800 Message-Id: <1474795144-15983-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/ethernet/hisilicon/hip04_eth.c:603:22: warning: no previous prototype for 'tx_done' [-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/hisilicon/hip04_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 415ffa1..3977889 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -600,7 +600,7 @@ static irqreturn_t hip04_mac_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -enum hrtimer_restart tx_done(struct hrtimer *hrtimer) +static enum hrtimer_restart tx_done(struct hrtimer *hrtimer) { struct hip04_priv *priv;