Skip to contentSkip to conversation

device-dax: Make function 'dev_dax_kmem_probe' static

PATCH New Wei Yongjun 1 participant 1 message Mar 4, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-dax: Make function 'dev_dax_kmem_probe' static

Fixes the following sparse warning:

drivers/dax/kmem.c:17:5: warning:
symbol 'dev_dax_kmem_probe' was not declared. Should it be static?

Fixes c221c0b0308f ("device-dax: "Hotplug" persistent memory for use like normal RAM")
---
 drivers/dax/kmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dax/kmem.c +1 -1
index a02318c6d28a..e5cbbe22a19b 100644
@@ -14,7 +14,7 @@
 #include "dax-private.h"
 #include "bus.h"
 
-int dev_dax_kmem_probe(struct device *dev)
+static int dev_dax_kmem_probe(struct device *dev)
 {
 	struct dev_dax *dev_dax = to_dev_dax(dev);
 	struct resource *res = &dev_dax->region->res;

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm