[RFC PATCH] libnvdimm, region_devs: nd_region_detach_and_reset() can be static
From: kbuild test robot
Date: Mon Sep 10 2018 - 20:41:16 EST
Fixes: 39ac5d361db2 ("libnvdimm, region_devs: reset related seeds when fail to create namespace")
Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---
region_devs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvdimm/region_devs.c b/drivers/nvdimm/region_devs.c
index 4c46fb6..a2f667e 100644
--- a/drivers/nvdimm/region_devs.c
+++ b/drivers/nvdimm/region_devs.c
@@ -707,7 +707,7 @@ void nd_mapping_free_labels(struct nd_mapping *nd_mapping)
* To ensure pfn_seed/dax_seed and namespace_seed are ready for
* next namespace creation, here to do detach and reset.
*/
-void nd_region_detach_and_reset(struct device *dev,
+static void nd_region_detach_and_reset(struct device *dev,
struct nd_region *nd_region)
{
/* Only nd_pmem has been verified, fix me for other dev type. */