nvdimm: make nd_class variable static
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 16 Jun 2023 16:06:28 +0000 (17:06 +0100)
committerVishal Verma <vishal.l.verma@intel.com>
Fri, 23 Jun 2023 20:55:58 +0000 (14:55 -0600)
commit191a9f3a611175b3e8e8c9e700fb8bce12ad7aa3
tree74d6ed6a6eaaf57985668397e84902b13bbe19ee
parente98d14fa7315867fded127a98db355f49807dfdb
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>
drivers/nvdimm/bus.c