projects
/
wrapfs-2.6.37.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82b58a
)
scsi: lpfc: Make lpfc_defer_acc_rsp static
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 7 Jan 2020 01:49:56 +0000
(09:49 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 23 Jan 2021 14:57:55 +0000
(15:57 +0100)
commit
fdb827e4a3f84cb92e286a821114ac0ad79c8281
upstream.
Fix sparse warning:
drivers/scsi/lpfc/lpfc_nportdisc.c:344:1: warning:
symbol 'lpfc_defer_acc_rsp' was not declared. Should it be static?
Link:
https://lore.kernel.org/r/20200107014956.41748-1-yuehaibing@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/lpfc/lpfc_nportdisc.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_nportdisc.c
b/drivers/scsi/lpfc/lpfc_nportdisc.c
index 04dc687fa0908f751be876e754894ad4c0303420..418d62e9455444f8c97ad33923b643bf90ad0a89 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_nportdisc.c
+++ b/
drivers/scsi/lpfc/lpfc_nportdisc.c
@@
-340,7
+340,7
@@
lpfc_defer_pt2pt_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *link_mbox)
* This routine is only called if we are SLI4, acting in target
* mode and the remote NPort issues the PLOGI after link up.
**/
-void
+
static
void
lpfc_defer_acc_rsp(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb)
{
struct lpfc_vport *vport = pmb->vport;