Skip to content

Commit 191a9f3

Browse files
bjdooks-ctstellarhopper
authored andcommitted
nvdimm: make nd_class variable static
The nd_class is not used outside of drivers/nvdimm/bus.c and thus sparse is generating the following warning. Remove this by making it static: drivers/nvdimm/bus.c:28:14: warning: symbol 'nd_class' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Link: https://lore.kernel.org/r/20230616160628.11801-1-ben.dooks@codethink.co.uk Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
1 parent e98d14f commit 191a9f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvdimm/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
int nvdimm_major;
2727
static int nvdimm_bus_major;
28-
struct class *nd_class;
28+
static struct class *nd_class;
2929
static DEFINE_IDA(nd_ida);
3030

3131
static int to_nd_device_type(const struct device *dev)

0 commit comments

Comments
 (0)