Skip to contentSkip to conversation

dax: Remove unused export of dax_dev_get()

PATCH New John Groves 1 participant 1 message Aug 6 1 message not in the archive

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

PATCH 1/1 dax: Remove unused export of dax_dev_get()

In reply to a message not in the archive

From: John Groves <[email protected]>

Commit 2ae624d5a555 ("dax: export dax_dev_get()") exported dax_dev_get() in v7.2 for famfs, which has not merged. The export has never had an in-tree caller, so make dax_dev_get() static again.

---
 drivers/dax/super.c | 3 +--
 include/linux/dax.h | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/dax/super.c +1 -2
index 25cf99dd9360..d4ab60c406bf 100644
@@ -521,7 +521,7 @@ static int dax_set(struct inode *inode, void *data)
 	return 0;
 }
 
-struct dax_device *dax_dev_get(dev_t devt)
+static struct dax_device *dax_dev_get(dev_t devt)
 {
 	struct dax_device *dax_dev;
 	struct inode *inode;
@@ -544,7 +544,6 @@ struct dax_device *dax_dev_get(dev_t devt)
 
 	return dax_dev;
 }
-EXPORT_SYMBOL_GPL(dax_dev_get);
 
 struct dax_device *alloc_dax(void *private, const struct dax_operations *ops)
 {
include/linux/dax.h +0 -1
index fe6c3ded1b50..f6b4549a8b4b 100644
@@ -54,7 +54,6 @@ struct dax_device *alloc_dax(void *private, const struct dax_operations *ops);
 void *dax_holder(struct dax_device *dax_dev);
 void put_dax(struct dax_device *dax_dev);
 void kill_dax(struct dax_device *dax_dev);
-struct dax_device *dax_dev_get(dev_t devt);
 void dax_write_cache(struct dax_device *dax_dev, bool wc);
 bool dax_write_cache_enabled(struct dax_device *dax_dev);
 bool dax_synchronous(struct dax_device *dax_dev);
Signature · 1 line
2.53.0