[PATCH] fs/dax: remove unused function

From: Anders Roxell
Date: Fri Jul 06 2018 - 07:55:22 EST


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@xxxxxxxxxxxxxxx>
Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
---
fs/dax.c | 6 ------
1 file changed, 6 deletions(-)

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;
--
2.18.0