From: Andi Kleen Date: Wed, 16 Dec 2009 11:20:00 +0000 (+0100) Subject: HWPOISON: Undefine short-hand macros after use to avoid namespace conflict X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2326c467df4ff814dc07cf1bdaa1e6e0a9c9f21c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git HWPOISON: Undefine short-hand macros after use to avoid namespace conflict Signed-off-by: Andi Kleen --- diff --git a/mm/memory-failure.c b/mm/memory-failure.c index ded1d387b4c5..b5c3b6bd511f 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -749,6 +749,19 @@ static struct page_state { { 0, 0, "unknown page state", me_unknown }, }; +#undef dirty +#undef sc +#undef unevict +#undef mlock +#undef writeback +#undef lru +#undef swapbacked +#undef head +#undef tail +#undef compound +#undef slab +#undef reserved + static void action_result(unsigned long pfn, char *msg, int result) { struct page *page = pfn_to_page(pfn);