summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-02-06 17:57:00 +0300
committerChristoph Hellwig <hch@lst.de>2023-02-08 09:28:16 +0300
commit70daa5c8f001e351af174c40ac21eb0a25600483 (patch)
tree0a8b042e40bed0bdb249579dfc4defca06f0f291 /drivers/nvme
parente02bbac74cdde25f71a80978f5daa1d8a0aa6fc3 (diff)
downloadlinux-70daa5c8f001e351af174c40ac21eb0a25600483.tar.xz
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