From patchwork Sun Sep 25 06:05:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76942 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp602175qgf; Sat, 24 Sep 2016 23:06:33 -0700 (PDT) X-Received: by 10.98.104.71 with SMTP id d68mr27355762pfc.163.1474783593040; Sat, 24 Sep 2016 23:06:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si17120707pay.222.2016.09.24.23.06.32; Sat, 24 Sep 2016 23:06:33 -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 S1030249AbcIYGGM (ORCPT + 4 others); Sun, 25 Sep 2016 02:06:12 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34075 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934317AbcIYGGJ (ORCPT ); Sun, 25 Sep 2016 02:06:09 -0400 Received: by mail-pa0-f49.google.com with SMTP id zl8so2208704pac.1 for ; Sat, 24 Sep 2016 23:06:09 -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=FQTHtZ72uInIZWqLELSQ+SDM4AF3fAEt6u0l6zQ3TOoVQutPBcSH8Gu6oENUkH00fG 9oDj5BHvIjjZztANAckIYq/9mprvwaY6aVWJY0gPHpTh2m0EszcAMwV/tWYIiMinCttC Gx9rltSdgRcn/LPdmUap1kNcY84qA/uRI8Nls= 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=Z3vAe+hocCIRUXlpN443Csm3gkBULMXjA0KaHLNDiLz3Tkn3RoUfsDipW6QOMgFyWx P7vew+ox6Vn43TOcWZbu1Cxr/M39QNgEIoBE5AvhBwZbCed1p40i1kybKE6CfuGQZ271 qeIC2R7m+lRkEcv+4DU2K3ilkQ9jbmBJ5Ub8KmeJJe4xSIOwb5h6NjkHIw/ma2QADE+w noc/N0kVMry/502Xq+4cxxqR/MUMO022wWBZXVzoamqvaZE2DJudET7zCkOdEo2KJDMu rqrkSMwyKmMfL2iE703Z6v1aAlHReQP3e2gAyHj7SOSVwSr+M57z//ut5KAWa66bkJE3 ZG+g== X-Gm-Message-State: AE9vXwMME5w9bzUA2LxWz572wjxF9CIz1kXa5fRoLkmIK9EcCP4qgOulDhJ9jt60ZRkMTRP5 X-Received: by 10.66.67.51 with SMTP id k19mr27349488pat.55.1474783568827; Sat, 24 Sep 2016 23:06:08 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id sy4sm16569472pac.48.2016.09.24.23.06.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Sep 2016 23:06:08 -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, 25 Sep 2016 14:05:58 +0800 Message-Id: <1474783558-7384-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;