Skip to contentSkip to conversation

nvdimm: make nd_class static

PATCH New ruanjinjie 1 participant 1 message Sep 26, 2022 libnvdimm: non-volatile memory device

lore
Share & tools
lore

ruanjinjie

author
#0 lore raw

PATCH 1/1 nvdimm: make nd_class static

The symbol is not used outside of the file, so mark it static.

Fixes the following warning:

drivers/nvdimm/bus.c:28:14: warning: symbol 'nd_class' was not declared. Should it be static?

---
 drivers/nvdimm/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvdimm/bus.c +1 -1
index b38d0355b0ac..1bf5f77e6f76 100644
@@ -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(struct device *dev)
Signature · 1 line
2.25.1