Skip to content

Commit

Permalink
HWPOISON: Undefine short-hand macros after use to avoid namespace con…
Browse files Browse the repository at this point in the history
…flict

Signed-off-by: Andi Kleen <[email protected]>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 16, 2009
1 parent 0474a60 commit 2326c46
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2326c46

Please sign in to comment.