From patchwork Sat Dec 14 12:17:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika Kheria X-Patchwork-Id: 301247 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4B22E2C0095 for ; Sat, 14 Dec 2013 23:17:44 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764Ab3LNMR3 (ORCPT ); Sat, 14 Dec 2013 07:17:29 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:59263 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753115Ab3LNMR1 (ORCPT ); Sat, 14 Dec 2013 07:17:27 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so3570351pde.27 for ; Sat, 14 Dec 2013 04:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=7JlfvMoKFXLHUKm5rb0QgOCibIsjwEFn/azyZ6Utst0=; b=vyexaL34YO5s0e+mRyUxXTI/RrU5LiJ9C2ul18f0kMN/V4NEZ/61a25dWzkDVvOuNw I2E0FK4jlPHK9x71b4eOtH0D6+TWqDvsfGb0ZCXbnI77OP3FmyVqtNazeMjf1XLlg29w uIOA2/Z2NpEkYhrmkrE6BezaH7QDRF5wshG+A1zt8mwDmoMBKxK4pQeyrBs5K3SDIUB6 pDz+fF6BCT0GbqUGukzF7e1lWyaHFalUZ9WkoQiKh9h7RNU7lECP6PWjkWIeciKL7ULs 3DKzGFcjEsPKQoiyqSdMiVj61xI9dDttT86dJKj9+a8yVog8HDM0j/F8DPhPHPcFZ6TY k1yA== X-Received: by 10.68.137.9 with SMTP id qe9mr8978242pbb.133.1387023447172; Sat, 14 Dec 2013 04:17:27 -0800 (PST) Received: from rashika ([14.98.241.125]) by mx.google.com with ESMTPSA id dq3sm11939120pbc.35.2013.12.14.04.17.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 14 Dec 2013 04:17:26 -0800 (PST) Date: Sat, 14 Dec 2013 17:47:13 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Himanshu Madhani , Rajesh Borundia , Shahed Shaikh , Jitendra Kalsaria , Sony Chacko , Sucheta Chakraborty , linux-driver@qlogic.com, netdev@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH v2 2/9] drivers: net: Mark functions as static in qlcnic_io.c Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch marks the function qlcnic_enable_tx_intr(), qlcnic_83xx_enable_tx_intr() and qlcnic_83xx_disable_tx_intr() in qlcnic_io.c as static because they are not used outside this file. Thus, it also removes the following warnings in ethernet/qlogic/qlcnic/qlcnic_io.c: drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c:130:13: warning: no previous prototype for ‘qlcnic_enable_tx_intr’ [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c:147:13: warning: no previous prototype for ‘qlcnic_83xx_enable_tx_intr’ [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c:153:13: warning: no previous prototype for ‘qlcnic_83xx_disable_tx_intr’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c index 0149c94..ac7ffc5 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c @@ -127,7 +127,7 @@ struct sk_buff *qlcnic_process_rxbuf(struct qlcnic_adapter *, struct qlcnic_host_rds_ring *, u16, u16); -inline void qlcnic_enable_tx_intr(struct qlcnic_adapter *adapter, +static inline void qlcnic_enable_tx_intr(struct qlcnic_adapter *adapter, struct qlcnic_host_tx_ring *tx_ring) { if (qlcnic_check_multi_tx(adapter) && @@ -144,13 +144,13 @@ static inline void qlcnic_disable_tx_int(struct qlcnic_adapter *adapter, writel(1, tx_ring->crb_intr_mask); } -inline void qlcnic_83xx_enable_tx_intr(struct qlcnic_adapter *adapter, +static inline void qlcnic_83xx_enable_tx_intr(struct qlcnic_adapter *adapter, struct qlcnic_host_tx_ring *tx_ring) { writel(0, tx_ring->crb_intr_mask); } -inline void qlcnic_83xx_disable_tx_intr(struct qlcnic_adapter *adapter, +static inline void qlcnic_83xx_disable_tx_intr(struct qlcnic_adapter *adapter, struct qlcnic_host_tx_ring *tx_ring) { writel(1, tx_ring->crb_intr_mask);