nvmet-fcloop: mark two symbols static
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 08:37:25 +0000 (10:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Apr 2017 07:18:27 +0000 (09:18 +0200)
Found by sparse.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/target/fcloop.c

index aaa3dbe22bd5e4152ec6a25e5f3ad62787026cbb..15551ef79c8c4568a6f611b6e9ba9d736127825b 100644 (file)
@@ -666,7 +666,7 @@ fcloop_targetport_delete(struct nvmet_fc_target_port *targetport)
 #define        FCLOOP_SGL_SEGS                 256
 #define FCLOOP_DMABOUND_4G             0xFFFFFFFF
 
-struct nvme_fc_port_template fctemplate = {
+static struct nvme_fc_port_template fctemplate = {
        .localport_delete       = fcloop_localport_delete,
        .remoteport_delete      = fcloop_remoteport_delete,
        .create_queue           = fcloop_create_queue,
@@ -686,7 +686,7 @@ struct nvme_fc_port_template fctemplate = {
        .fcprqst_priv_sz        = sizeof(struct fcloop_ini_fcpreq),
 };
 
-struct nvmet_fc_target_template tgttemplate = {
+static struct nvmet_fc_target_template tgttemplate = {
        .targetport_delete      = fcloop_targetport_delete,
        .xmt_ls_rsp             = fcloop_xmt_ls_rsp,
        .fcp_op                 = fcloop_fcp_op,