]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
nvme-core: declare local symbols static
authorBart Van Assche <bvanassche@acm.org>
Mon, 8 Oct 2018 21:28:39 +0000 (14:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 17 Oct 2018 06:58:25 +0000 (08:58 +0200)
This patch avoids that sparse complains about missing declarations.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index 2db33a752e2bde07995677da5ef69eee69f6a967..63932dea74a14d140827134a7921e34ba5c0b95d 100644 (file)
@@ -2729,7 +2729,7 @@ static umode_t nvme_ns_id_attrs_are_visible(struct kobject *kobj,
        return a->mode;
 }
 
-const struct attribute_group nvme_ns_id_attr_group = {
+static const struct attribute_group nvme_ns_id_attr_group = {
        .attrs          = nvme_ns_id_attrs,
        .is_visible     = nvme_ns_id_attrs_are_visible,
 };