Commit 39aa23f9 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen

scsi: lpfc: make a couple of functions static

functions lpfc_nvmet_cleanup_io_context and lpfc_nvmet_setup_io_context
can be made static as they do not need to be in global scope.

Cleans up sparse warnings:
  "warning: symbol 'lpfc_nvmet_cleanup_io_context' was not declared.
   Should it be static?"
  "warning: symbol 'lpfc_nvmet_setup_io_context' was not declared.
   Should it be static?"
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f7de50da
...@@ -828,7 +828,7 @@ static struct nvmet_fc_target_template lpfc_tgttemplate = { ...@@ -828,7 +828,7 @@ static struct nvmet_fc_target_template lpfc_tgttemplate = {
.target_priv_sz = sizeof(struct lpfc_nvmet_tgtport), .target_priv_sz = sizeof(struct lpfc_nvmet_tgtport),
}; };
void static void
lpfc_nvmet_cleanup_io_context(struct lpfc_hba *phba) lpfc_nvmet_cleanup_io_context(struct lpfc_hba *phba)
{ {
struct lpfc_nvmet_ctxbuf *ctx_buf, *next_ctx_buf; struct lpfc_nvmet_ctxbuf *ctx_buf, *next_ctx_buf;
...@@ -858,7 +858,7 @@ lpfc_nvmet_cleanup_io_context(struct lpfc_hba *phba) ...@@ -858,7 +858,7 @@ lpfc_nvmet_cleanup_io_context(struct lpfc_hba *phba)
} }
} }
int static int
lpfc_nvmet_setup_io_context(struct lpfc_hba *phba) lpfc_nvmet_setup_io_context(struct lpfc_hba *phba)
{ {
struct lpfc_nvmet_ctxbuf *ctx_buf; struct lpfc_nvmet_ctxbuf *ctx_buf;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment