From b9836d4090eb918a90e99f590e470e40eb8e200e 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 8cd9aa93b726 ("ANDROID: implement wrapper for reverse migration") Bug: 175403896 Signed-off-by: Elliot Berman --- 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 8d14563808d5..5734e3cf4792 100644 --- a/include/linux/compaction.h +++ b/include/linux/compaction.h @@ -238,7 +238,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;