lkml.org 
[lkml]   [2014]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 05/55] scsi: Mark function as static in bfa/bfa_ioc.c
Mark functions as static in bfa/bfa_ioc.c because they are not used
outside this file.

This eliminates the following warning in bfa/bfa_ioc.c:
drivers/scsi/bfa/bfa_ioc.c:5039:1: warning: no previous prototype for ‘bfa_diag_intr’ [-Wmissing-prototypes]
drivers/scsi/bfa/bfa_ioc.c:7002:1: warning: no previous prototype for ‘bfa_flash_sem_get’ [-Wmissing-prototypes]
drivers/scsi/bfa/bfa_ioc.c:7015:1: warning: no previous prototype for ‘bfa_flash_sem_put’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
drivers/scsi/bfa/bfa_ioc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c
index 65180e1..d9bed12 100644
--- a/drivers/scsi/bfa/bfa_ioc.c
+++ b/drivers/scsi/bfa/bfa_ioc.c
@@ -5035,7 +5035,7 @@ diag_portbeacon_comp(struct bfa_diag_s *diag)
/*
* Diag hmbox handler
*/
-void
+static void
bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg)
{
struct bfa_diag_s *diag = diagarg;
@@ -6998,7 +6998,7 @@ bfa_raw_sem_get(void __iomem *bar)

}

-bfa_status_t
+static bfa_status_t
bfa_flash_sem_get(void __iomem *bar)
{
u32 n = FLASH_BLOCKING_OP_MAX;
@@ -7011,7 +7011,7 @@ bfa_flash_sem_get(void __iomem *bar)
return BFA_STATUS_OK;
}

-void
+static void
bfa_flash_sem_put(void __iomem *bar)
{
writel(0, (bar + FLASH_SEM_LOCK_REG));
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-03-29 19:01    [W:0.223 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site