On Thu, Jun 06, 2024 at 02:32:44PM +0800, Miaohe Lin wrote: > +++ b/mm/internal.h > @@ -1077,6 +1077,16 @@ extern u64 hwpoison_filter_flags_mask; > extern u64 hwpoison_filter_flags_value; > extern u64 hwpoison_filter_memcg; > extern u32 hwpoison_filter_enable; > +#define MAGIC_HWPOISON 0x48575053U /* HWPS */ > +extern void SetPageHWPoisonTakenOff(struct page *page); > +extern void ClearPageHWPoisonTakenOff(struct page *page); > +extern bool take_page_off_buddy(struct page *page); > +extern bool put_page_back_buddy(struct page *page); s/extern// for function declarations.