From c32fd1b25a08918309db5659b36c118b3487a826 Mon Sep 17 00:00:00 2001 From: yang_hongliang Date: Thu, 3 Mar 2022 22:29:32 +0800 Subject: [PATCH] solve complie error while enable CONFIG_HIBERNATION Signed-off-by: yang_hongliang --- linux-5.10/rk3568_patch/kernel.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/linux-5.10/rk3568_patch/kernel.patch b/linux-5.10/rk3568_patch/kernel.patch index d531e30..bea6c90 100755 --- a/linux-5.10/rk3568_patch/kernel.patch +++ b/linux-5.10/rk3568_patch/kernel.patch @@ -1605715,6 +1605715,19 @@ index e07f6e61c..7cdc5dfa4 100644 + struct rk808_pin_info *pins; }; #endif /* __LINUX_REGULATOR_RK808_H */ +diff --git a/include/linux/mm.h b/include/linux/mm.h +index c9b37ce2db0b..ab9e25f88808 100644 +--- a/include/linux/mm.h ++++ b/include/linux/mm.h +@@ -2898,6 +2898,8 @@ extern bool page_poisoning_enabled(void); + extern void kernel_poison_pages(struct page *page, int numpages, int enable); + #else + static inline bool page_poisoning_enabled(void) { return false; } ++static inline bool page_poisoning_enabled_static(void) { return false; } ++static inline void __kernel_poison_pages(struct page *page, int nunmpages) { } + static inline void kernel_poison_pages(struct page *page, int numpages, + int enable) { } + #endif diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 40d7e98fc..819f6119d 100644 --- a/include/linux/mmc/host.h -- Gitee