summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-02-06 15:57:00 +0100
committerChristoph Hellwig <hch@lst.de>2023-02-08 07:28:16 +0100
commit70daa5c8f001e351af174c40ac21eb0a25600483 (patch)
tree0a8b042e40bed0bdb249579dfc4defca06f0f291 /drivers/nvme
parentMerge tag 'nvme-6.2-2023-02-02' of git://git.infradead.org/nvme into block-6.2 (diff)
downloadlinux-70daa5c8f001e351af174c40ac21eb0a25600483.tar.xz
linux-70daa5c8f001e351af174c40ac21eb0a25600483.zip
nvme-auth: mark nvme_auth_wq static
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/auth.c b/drivers/nvme/host/auth.c
index b57630d1d3b8..bdb97496ba2d 100644
--- a/drivers/nvme/host/auth.c
+++ b/drivers/nvme/host/auth.c
@@ -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