[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190304011121.64398-1-weiyongjun1@huawei.com>
Date: Mon, 4 Mar 2019 01:11:21 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Dan Williams <dan.j.williams@...el.com>,
Vishal Verma <vishal.l.verma@...el.com>,
Keith Busch <keith.busch@...el.com>,
Dave Jiang <dave.jiang@...el.com>,
Dave Hansen <dave.hansen@...ux.intel.com>
CC: Wei Yongjun <weiyongjun1@...wei.com>, <linux-nvdimm@...ts.01.org>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] 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")
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.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;
Powered by blists - more mailing lists