[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180706115458.7792-1-anders.roxell@linaro.org>
Date: Fri, 6 Jul 2018 13:54:58 +0200
From: Anders Roxell <anders.roxell@...aro.org>
To: viro@...iv.linux.org.uk, willy@...radead.org,
ross.zwisler@...ux.intel.com
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
Anders Roxell <anders.roxell@...aro.org>
Subject: [PATCH] fs/dax: remove unused function
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@...ux.intel.com>
Signed-off-by: Anders Roxell <anders.roxell@...aro.org>
---
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
Powered by blists - more mailing lists