diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index a2b48041b910..7a9ab7db1975 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1465,6 +1465,14 @@ extern int sysctl_memory_failure_recovery; | |||
1465 | extern void shake_page(struct page *p, int access); | 1465 | extern void shake_page(struct page *p, int access); |
1466 | extern atomic_long_t mce_bad_pages; | 1466 | extern atomic_long_t mce_bad_pages; |
1467 | extern int soft_offline_page(struct page *page, int flags); | 1467 | extern int soft_offline_page(struct page *page, int flags); |
1468 | #ifdef CONFIG_MEMORY_FAILURE | ||
1469 | int is_hwpoison_address(unsigned long addr); | ||
1470 | #else | ||
1471 | static inline int is_hwpoison_address(unsigned long addr) | ||
1472 | { | ||
1473 | return 0; | ||
1474 | } | ||
1475 | #endif | ||
1468 | 1476 | ||
1469 | extern void dump_page(struct page *page); | 1477 | extern void dump_page(struct page *page); |
1470 | 1478 | ||