]> www.infradead.org Git - nvme.git/commitdiff
nvme: make nvme_tls_attrs_group static
authorKeith Busch <kbusch@kernel.org>
Tue, 28 Jan 2025 15:22:31 +0000 (07:22 -0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 31 Jan 2025 18:14:27 +0000 (10:14 -0800)
To suppress the compiler "warning: symbol 'nvme_tls_attrs_group' was not
declared. Should it be static?"

Fixes: 1e48b34c9bc79a ("nvme: split off TLS sysfs attributes into a separate group")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/sysfs.c

index b68a9e5f1ea395eba40998394d561a8466c88913..3a41b9ab0f13c4be1ccacc5882cad5b9f0ae02ea 100644 (file)
@@ -792,7 +792,7 @@ static umode_t nvme_tls_attrs_are_visible(struct kobject *kobj,
        return a->mode;
 }
 
-const struct attribute_group nvme_tls_attrs_group = {
+static const struct attribute_group nvme_tls_attrs_group = {
        .attrs          = nvme_tls_attrs,
        .is_visible     = nvme_tls_attrs_are_visible,
 };