From patchwork Fri Sep 30 07:34:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 77155 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp125976qgf; Fri, 30 Sep 2016 00:34:48 -0700 (PDT) X-Received: by 10.66.193.135 with SMTP id ho7mr9433486pac.12.1475220888525; Fri, 30 Sep 2016 00:34:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ex11si18749407pad.209.2016.09.30.00.34.48; Fri, 30 Sep 2016 00:34:48 -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 S1751764AbcI3Heq (ORCPT + 27 others); Fri, 30 Sep 2016 03:34:46 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:32915 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751176AbcI3Hei (ORCPT ); Fri, 30 Sep 2016 03:34:38 -0400 Received: by mail-pa0-f47.google.com with SMTP id cd13so32747942pac.0 for ; Fri, 30 Sep 2016 00:34:38 -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=XX8AEhyPw5Ls635JDHSZtkkTbKNLNskuDE5MG/eggRM=; b=YxpvTGHy9FyuV7PzoCll39+YADEZ/W2xAGsNqkR4w3Bw6zfgNLYfCgZBubCnyMqCLU LzvFAn2eYMQxuThPOM++OD76aGYb2KS3kJKfjWuYnyCJ5NZNEg7cEwM19kFR/2zOqhbI 0JX37dGF/i0C4Oi8pFOTibGr4vjSMtYY1ehzk= 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=XX8AEhyPw5Ls635JDHSZtkkTbKNLNskuDE5MG/eggRM=; b=ZKWlbk/7gX3CetG/apIiDtx6DZOUcMySarWKaZfAf4SMg8PLP/JXH9vePZDT4fit/W 5Lsm+uE/n7pnwpGtLpdo4ss1EQNTaB6aqyWCGxkWOhMRtsKTJ30+1J6N/jvJZAQP3ilU NJxbIa7YKMdmtspCbrdf9rh/F2njZfDI/BbhL/C11uyAdMMhPZKFTzab3UMLZ6TPwv3b DXum57e8BB4JBpdKdaN4XX9fVuN5PkLe8cL0QAOJxYILZtxGEw5lweaRMLACqw+xlNLf ZoOEzalTK35VcB1j/HMlBDHDTcPkmx1sTSgSXxp66uWjpZA6rk1yBouy9NaJryEbdl+k f8IA== X-Gm-Message-State: AA6/9Rl0QZAhOqK6YjCSvvPaXcd8IOZ74ZHuFnueedCshC0Ni45wb7g0W8eXVOLbfUidJMyz X-Received: by 10.66.73.103 with SMTP id k7mr9427549pav.19.1475220877924; Fri, 30 Sep 2016 00:34:37 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.182]) by smtp.gmail.com with ESMTPSA id p128sm25230178pfg.38.2016.09.30.00.34.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Sep 2016 00:34:37 -0700 (PDT) From: Baoyou Xie To: hariprasad@chelsio.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] cxgb4: mark cxgb_setup_tc() static Date: Fri, 30 Sep 2016 15:34:25 +0800 Message-Id: <1475220865-18321-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/chelsio/cxgb4/cxgb4_main.c:2715:5: warning: no previous prototype for 'cxgb_setup_tc' [-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/chelsio/cxgb4/cxgb4_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index c8a5c43..08e69d3 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -2712,8 +2712,8 @@ static int cxgb_set_tx_maxrate(struct net_device *dev, int index, u32 rate) return err; } -int cxgb_setup_tc(struct net_device *dev, u32 handle, __be16 proto, - struct tc_to_netdev *tc) +static int cxgb_setup_tc(struct net_device *dev, u32 handle, __be16 proto, + struct tc_to_netdev *tc) { struct port_info *pi = netdev2pinfo(dev); struct adapter *adap = netdev2adap(dev);