bnxfc:Make the function bnx2fc_alloc_work static
Chad Dupuis
Acked-byMake sense.
Acked-by Chad Dupuis <[email protected]>
Quoted 23 lines · Nicholas Krause
This makes the function
bnx_2fc_alloc_workstatic now due to this function's only caller being in this particular function's definition/declaration file ofbnx2fc_hwi.c.Signed-off-by Nicholas Krause <[email protected]>---
drivers/scsi/bnx2fc/bnx2fc_hwi.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/bnx2fc/bnx2fc_hwi.c +1
-1@@ -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 );