From patchwork Sun Sep 18 08:50:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76453 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp446885qgf; Sun, 18 Sep 2016 01:50:54 -0700 (PDT) X-Received: by 10.98.150.10 with SMTP id c10mr37481158pfe.73.1474188653980; Sun, 18 Sep 2016 01:50:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si21718082pay.275.2016.09.18.01.50.53; Sun, 18 Sep 2016 01:50:53 -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 S1756273AbcIRIuo (ORCPT + 4 others); Sun, 18 Sep 2016 04:50:44 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36608 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754494AbcIRIul (ORCPT ); Sun, 18 Sep 2016 04:50:41 -0400 Received: by mail-pa0-f54.google.com with SMTP id id6so38915163pad.3 for ; Sun, 18 Sep 2016 01:50:40 -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=lk/ekvy4BrpfE/PnS9opGcigfFa2wTbqpQt8VBuM7mk=; b=TIycVEyO8xNpilKOBgU/GFcG7puAwoThLHroIy4N99sG2v4RWqSmjBSoJ33P1QOBU9 dcw9j2Si0BGcLZd81vWnfReZZiK49EQER2phQ8PrBssF+ewjHZ6roGdl2vjEgqwzD60I 3JdGBxnxGWOdqgC8wbBW1qZHk8A3w4+UAosv4= 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=lk/ekvy4BrpfE/PnS9opGcigfFa2wTbqpQt8VBuM7mk=; b=e8uJku7LKlU4vqyn5gR1KkQr/imuZSTJhj79jSN2OXk0DqhJA/El5N/hklNo5f87o6 +sOg6oQRKCbkFWBsixgBMf0ex0BDW3diAsTPuUs9pg+6cZJhB7hnsWp+Qt7izW851m/q q0B/LA1DGkFax7B4y7NvZsssENkKybUSLe8w8+GK9UBbwdXz0j8dC6RSVukRUaKQVlTo yxVsWoRXK9VC/4iJegv0oU8TVmJF706ocLuRTfFSQvgnWB4cPYN7iH8VR7KPuezk3Qk6 fNUXbaRLDj1z7mgdykh4STAwuy5QjJFS/PFuo9qqMiNPSgfLD25VVH65oXDzz6lq2CPY CQdg== X-Gm-Message-State: AE9vXwNN6uLC5Lc2b3VH+v1P4PLDTL3ugUpe2fQC2CCtHb64vEVz98d8Rf1UhD437ZX8Vunx X-Received: by 10.66.76.65 with SMTP id i1mr37171139paw.51.1474188640359; Sun, 18 Sep 2016 01:50:40 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id ae7sm23268647pac.19.2016.09.18.01.50.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 01:50:39 -0700 (PDT) From: Baoyou Xie To: jeffrey.t.kirsher@intel.com, intel-wired-lan@lists.osuosl.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] igb: mark igb_rxnfc_write_vlan_prio_filter() static Date: Sun, 18 Sep 2016 16:50:28 +0800 Message-Id: <1474188628-420-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/intel/igb/igb_ethtool.c:2707:5: warning: no previous prototype for 'igb_rxnfc_write_vlan_prio_filter' [-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/intel/igb/igb_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 0c33eca..737b664 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -2704,8 +2704,8 @@ static int igb_rxnfc_write_etype_filter(struct igb_adapter *adapter, return 0; } -int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter, - struct igb_nfc_filter *input) +static int igb_rxnfc_write_vlan_prio_filter(struct igb_adapter *adapter, + struct igb_nfc_filter *input) { struct e1000_hw *hw = &adapter->hw; u8 vlan_priority;