From patchwork Thu Sep 8 08:43:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75730 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp728171qgf; Thu, 8 Sep 2016 01:43:54 -0700 (PDT) X-Received: by 10.66.123.105 with SMTP id lz9mr91145120pab.56.1473324234733; Thu, 08 Sep 2016 01:43:54 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lo4si46010186pab.269.2016.09.08.01.43.54; Thu, 08 Sep 2016 01:43:54 -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 S1758513AbcIHInw (ORCPT + 27 others); Thu, 8 Sep 2016 04:43:52 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:34808 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757640AbcIHInu (ORCPT ); Thu, 8 Sep 2016 04:43:50 -0400 Received: by mail-pf0-f179.google.com with SMTP id p64so16106908pfb.1 for ; Thu, 08 Sep 2016 01:43:50 -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=VSlpw0iHZcbtbReIvSJPqAGAeLyEekFYo7MOb4UZm38=; b=eV72kF4YFeQaZh0j7M/9wicQ1nOB4iRsDUZNWwtGAKJuwpB3eamQaQFMUkmhY+nnX9 l0lRlu4VKVawyFk5aYmJeNUp/TuKuYeA84c9+hGTCU6Y7bgmfvxWLhYFe9jiup3XOYSr Sgxbag5TFTdAjFAkf832po7QhFdzfCoHLjAyo= 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=VSlpw0iHZcbtbReIvSJPqAGAeLyEekFYo7MOb4UZm38=; b=SPU6Y4XoCHs0NLPXaH7qi/K/cqG5PffXWxP+T24QTw0XgLczM/libNy1VLRf2Ea13k BJXss4S3xfxaKYjwHr3fCgxUIsRdPg+VA3uAhQNk8VVlagoBdQPW5DOgc/FEEA+CIgfO N4QZ9YLypCwMUoPc0aEaGBBKX09zPWeuz8ZG5BxqXebwjYECc/kNrHfBpGF3WCPBuoYe xSogLNuZ2nbC2h+UdGY7YwcDpRM6ytczawoiZ6FJRaLSJD7S3UYIuF9DcQCJGg/aNPCF vYrb0AIMLQ4aF3sbsEoGzN9Y8oSSnY0QDHu3tw2p01gvEQ/CKabXGGp6Ip52HdNvL36U gN6w== X-Gm-Message-State: AE9vXwMorvmZIIqdLX7PFZmiPez9v8uoRGu5k+NCG0didtmzv1yo9uM/yC/Yxje9Mt/vjfUr X-Received: by 10.98.8.13 with SMTP id c13mr90542588pfd.166.1473324230100; Thu, 08 Sep 2016 01:43:50 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.33]) by smtp.gmail.com with ESMTPSA id 3sm38318613pai.48.2016.09.08.01.43.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 01:43:49 -0700 (PDT) From: Baoyou Xie To: Yuval.Mintz@qlogic.com, Ariel.Elior@qlogic.com, everest-linux-l2@qlogic.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] qede: mark qede_set_features() static Date: Thu, 8 Sep 2016 16:43:23 +0800 Message-Id: <1473324203-9065-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/qlogic/qede/qede_main.c:2113:5: warning: no previous prototype for 'qede_set_features' [-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/qlogic/qede/qede_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index e4bd02e..4d2ce65 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -2110,7 +2110,7 @@ static void qede_vlan_mark_nonconfigured(struct qede_dev *edev) edev->accept_any_vlan = false; } -int qede_set_features(struct net_device *dev, netdev_features_t features) +static int qede_set_features(struct net_device *dev, netdev_features_t features) { struct qede_dev *edev = netdev_priv(dev); netdev_features_t changes = features ^ dev->features;