nvme-auth: mark nvme_auth_wq static
authorTom Rix <trix@redhat.com>
Mon, 6 Feb 2023 14:57:00 +0000 (06:57 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Feb 2023 06:28:16 +0000 (07:28 +0100)
Fix a smatch report for the newly added nvme_auth_wq.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c

index b57630d1d3b8bda0ef8c5f947bbe39b7eeed885f..bdb97496ba2d1acea330bcfcc7d61f42c01d095d 100644 (file)
@@ -45,7 +45,7 @@ struct nvme_dhchap_queue_context {
        int sess_key_len;
 };
 
-struct workqueue_struct *nvme_auth_wq;
+static struct workqueue_struct *nvme_auth_wq;
 
 #define nvme_auth_flags_from_qid(qid) \
        (qid == 0) ? 0 : BLK_MQ_REQ_NOWAIT | BLK_MQ_REQ_RESERVED