mm: remove page_is_poisoned() from linux/mm.h
authorSahara <[email protected]>
Fri, 8 Jun 2018 00:09:48 +0000 (17:09 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:38 +0000 (17:34 -0700)
When commit bd33ef368135 ("mm: enable page poisoning early at boot") got
rid of the PAGE_EXT_DEBUG_POISON, page_is_poisoned in the header left
behind.  This patch cleans up the leftovers under the table.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sahara <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/mm.h

index 1dd588b7c64930d9cce02d370bd45029218c1a6a..f0f3905f8bb8c92c6dc50cf3a87687b1eb978a5e 100644 (file)
@@ -2532,12 +2532,10 @@ extern int apply_to_page_range(struct mm_struct *mm, unsigned long address,
 #ifdef CONFIG_PAGE_POISONING
 extern bool page_poisoning_enabled(void);
 extern void kernel_poison_pages(struct page *page, int numpages, int enable);
-extern bool page_is_poisoned(struct page *page);
 #else
 static inline bool page_poisoning_enabled(void) { return false; }
 static inline void kernel_poison_pages(struct page *page, int numpages,
                                        int enable) { }
-static inline bool page_is_poisoned(struct page *page) { return false; }
 #endif
 
 #ifdef CONFIG_DEBUG_PAGEALLOC