[PATCH] mm/gup: disallow FOLL_LONGTERM GUP-fast writing to file-backed mappings

From: Lorenzo Stoakes
Date: Tue May 02 2023 - 03:40:48 EST


Fix compiler warning.

Signed-off-by: Lorenzo Stoakes <lstoakes@xxxxxxxxx>
---
mm/gup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/gup.c b/mm/gup.c
index 431618048a03..ffc3caf120fc 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -111,7 +111,7 @@ static void unlock_rcu(void)
rcu_read_unlock();
}
#else
-static bool stabilise_mapping_rcu(struct folio *)
+static bool stabilise_mapping_rcu(struct folio *folio)
{
return true;
}
--
2.40.1