Skip to content

Commit

Permalink
nvme-core: declare local symbols static
Browse files Browse the repository at this point in the history
This patch avoids that sparse complains about missing declarations.

Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
bvanassche authored and Christoph Hellwig committed Oct 17, 2018
1 parent 35da77d commit eb090c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit eb090c4

Please sign in to comment.