From 9283e0977a997e4d210e14d45a1a8416781fe35e Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Wed, 21 Apr 2021 10:10:24 -0700 Subject: [PATCH] ANDROID: inline isolate_and_split_free_page Add inline keyword to pass compilation when CONFIG_COMPACTION is not enabled. include/linux/compaction.h:241:22: warning: 'isolate_and_split_free_page' defined but not used [-Wunused-function] Change-Id: I6bec2789a68e1b8fc9f4ea8f7267571a333d68ef Fixes: commit 061e34c52e0f ("ANDROID: implement wrapper for reverse migration") Bug: 175403896 Signed-off-by: Elliot Berman (cherry picked from commit b9836d4090eb918a90e99f590e470e40eb8e200e) --- include/linux/compaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compaction.h b/include/linux/compaction.h index fbc43d5af1ba..b99b7532cc29 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -227,7 +227,7 @@ static inline void wakeup_kcompactd(pg_data_t *pgdat, { } -static unsigned long isolate_and_split_free_page(struct page *page, +static inline unsigned long isolate_and_split_free_page(struct page *page, struct list_head *list) { return 0;