From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rashika Kheria Subject: =?UTF-8?q?=5BPATCH=20v3=202/8=5D=20drivers=3A=20net=3A=20Mark=20functions=20as=20static=20in=20qlcnic=5F83xx=5Fhw=2Ec?= Date: Thu, 19 Dec 2013 14:18:11 +0530 Message-ID: References: <04fe932bc3585620c91d511bb0894e45bb762ffa.1387382457.git.rashika.kheria@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: linux-kernel@vger.kernel.org, Himanshu Madhani , Rajesh Borundia , Shahed Shaikh , Jitendra Kalsaria , Sony Chacko , Sucheta Chakraborty , linux-driver@qlogic.com, netdev@vger.kernel.org, josh@joshtriplett.org Return-path: In-Reply-To: <04fe932bc3585620c91d511bb0894e45bb762ffa.1387382457.git.rashika.kheria@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This patch marks the function qlcnic_83xx_clear_legacy_intr_mask(), qlcnic_83xx_set_legacy_intr_mask() and qlcnic_83xx_enable_legacy_msix_mbx_intr() in qlcnic_83xx_hw.c as static because they are not used outside this file. Thus, it also removes the following warnings in ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c: drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c:318:13: warning: no= previous prototype for =E2=80=98qlcnic_83xx_clear_legacy_intr_mask=E2=80= =99 [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c:323:13: warning: no= previous prototype for =E2=80=98qlcnic_83xx_set_legacy_intr_mask=E2=80= =99 [-Wmissing-prototypes] drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c:343:13: warning: no= previous prototype for =E2=80=98qlcnic_83xx_enable_legacy_msix_mbx_int= r=E2=80=99 [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- .../net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/driv= ers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index b1cb0ff..d0c2cd4 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c @@ -315,12 +315,12 @@ int qlcnic_83xx_setup_intr(struct qlcnic_adapter = *adapter) return 0; } =20 -inline void qlcnic_83xx_clear_legacy_intr_mask(struct qlcnic_adapter *= adapter) +static inline void qlcnic_83xx_clear_legacy_intr_mask(struct qlcnic_ad= apter *adapter) { writel(0, adapter->tgt_mask_reg); } =20 -inline void qlcnic_83xx_set_legacy_intr_mask(struct qlcnic_adapter *ad= apter) +static inline void qlcnic_83xx_set_legacy_intr_mask(struct qlcnic_adap= ter *adapter) { if (adapter->tgt_mask_reg) writel(1, adapter->tgt_mask_reg); @@ -340,7 +340,7 @@ void qlcnic_83xx_disable_intr(struct qlcnic_adapter= *adapter, writel(1, sds_ring->crb_intr_mask); } =20 -inline void qlcnic_83xx_enable_legacy_msix_mbx_intr(struct qlcnic_adap= ter +static inline void qlcnic_83xx_enable_legacy_msix_mbx_intr(struct qlcn= ic_adapter *adapter) { u32 mask; --=20 1.7.9.5