aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2023-06-16 17:06:28 +0100
committerVishal Verma <vishal.l.verma@intel.com>2023-06-23 14:55:58 -0600
commit191a9f3a611175b3e8e8c9e700fb8bce12ad7aa3 (patch)
tree74d6ed6a6eaaf57985668397e84902b13bbe19ee /drivers/nvdimm
parente98d14fa7315867fded127a98db355f49807dfdb (diff)
downloadlinux-191a9f3a611175b3e8e8c9e700fb8bce12ad7aa3.tar.gz
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>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r--drivers/nvdimm/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index 954dbc105fc80..5852fe290523b 100644
--- a/drivers/nvdimm/bus.c
+++ b/drivers/nvdimm/bus.c
@@ -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)