* [PATCH -next] device-dax: Make function 'dev_dax_kmem_probe' static
@ 2019-03-04 1:11 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2019-03-04 1:11 UTC (permalink / raw)
To: Dan Williams, Vishal Verma, Keith Busch, Dave Jiang, Dave Hansen
Cc: Wei Yongjun, linux-nvdimm, linux-kernel, kernel-janitors
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")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/dax/kmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dax/kmem.c b/drivers/dax/kmem.c
index a02318c6d28a..e5cbbe22a19b 100644
--- a/drivers/dax/kmem.c
+++ b/drivers/dax/kmem.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-04 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 1:11 [PATCH -next] device-dax: Make function 'dev_dax_kmem_probe' static Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).