Skip to contentSkip to conversation

bnxfc:Make the function bnx2fc_alloc_work static

PATCH Chad Dupuis 1 participant 1 message Jun 25, 2015 1 message not in the archive SCSI

lore
Share & tools
lore

Chad Dupuis

author Acked-by
#1 lore raw
In reply to a message not in the archive

Make sense.

Quoted 23 lines · Nicholas Krause

This makes the function bnx_2fc_alloc_work static now due to this function's only caller being in this particular function's definition/declaration file of bnx2fc_hwi.c.

---
drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_hwi.c +1 -1
index c6688d7..15eef07 100644
@@ -994,7 +994,7 @@ void bnx2fc_arm_cq(struct bnx2fc_rport *tgt)
 
 }
 
-struct bnx2fc_work *bnx2fc_alloc_work(struct bnx2fc_rport *tgt, u16 wqe)
+static struct bnx2fc_work *bnx2fc_alloc_work(struct bnx2fc_rport *tgt, u16 wqe)
 {
 	struct bnx2fc_work *work;
 	work = kzalloc(sizeof(struct bnx2fc_work), GFP_ATOMIC);