diff mbox series

fs/dax: remove unused function

Message ID 20180706115458.7792-1-anders.roxell@linaro.org
State New
Headers show
Series fs/dax: remove unused function | expand

Commit Message

Anders Roxell July 6, 2018, 11:54 a.m. UTC
When CONFIG_FS_DAX is enabled we get this warning:
fs/dax.c:106:14: warning: ‘dax_make_page_entry’ defined but not used
   [-Wunused-function]
 static void *dax_make_page_entry(struct page *page, void *entry)
              ^~~~~~~~~~~~~~~~~~~
Remove the unused function.

Fixes: 9bfcbe5ef12f ("dax: Convert dax_lock_page to XArray")
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

---
 fs/dax.c | 6 ------
 1 file changed, 6 deletions(-)

-- 
2.18.0
diff mbox series

Patch

diff --git a/fs/dax.c b/fs/dax.c
index fcf1332dcb0a..6e6cae1db520 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -103,12 +103,6 @@  static void *dax_make_entry(pfn_t pfn, unsigned long flags)
 	return xa_mk_value(flags | (pfn_t_to_pfn(pfn) << DAX_SHIFT));
 }
 
-static void *dax_make_page_entry(struct page *page, void *entry)
-{
-	pfn_t pfn = page_to_pfn_t(page);
-	return dax_make_entry(pfn, dax_is_pmd_entry(entry));
-}
-
 static bool dax_is_locked(void *entry)
 {
 	return xa_to_value(entry) & DAX_LOCKED;