mirror of
https://github.com/torvalds/linux
synced 2024-11-02 18:48:59 +00:00
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>
This commit is contained in:
parent
e98d14fa73
commit
191a9f3a61
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
int nvdimm_major;
|
||||
static int nvdimm_bus_major;
|
||||
struct class *nd_class;
|
||||
static struct class *nd_class;
|
||||
static DEFINE_IDA(nd_ida);
|
||||
|
||||
static int to_nd_device_type(const struct device *dev)
|
||||
|
|
Loading…
Reference in a new issue