Skip to content

Commit 2d1a2da

Browse files
committed
nvme: make nvme_tls_attrs_group static
To suppress the compiler "warning: symbol 'nvme_tls_attrs_group' was not declared. Should it be static?" Fixes: 1e48b34 ("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>
1 parent cc3d467 commit 2d1a2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ static umode_t nvme_tls_attrs_are_visible(struct kobject *kobj,
792792
return a->mode;
793793
}
794794

795-
const struct attribute_group nvme_tls_attrs_group = {
795+
static const struct attribute_group nvme_tls_attrs_group = {
796796
.attrs = nvme_tls_attrs,
797797
.is_visible = nvme_tls_attrs_are_visible,
798798
};

0 commit comments

Comments
 (0)