diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2012-05-29 18:06:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 19:22:18 -0400 |
commit | 71dd0b8ae83120db9ade1380fae7a49cc6b3f465 (patch) | |
tree | d821aad45658ee9d03f445b0a94bc540f7f309a1 /mm/memory-failure.c | |
parent | 08fa29d916c6e271ad13978cd993e7238c68db97 (diff) |
mm/memory_failure: let the compiler add the function name
These things tend to get out of sync with time so let the compiler
automatically enter the current function name using __func__.
No functional change.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Andi Kleen <andi@firstfloor.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
-rw-r--r-- | mm/memory-failure.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index c99ad4e6b88c..ab1e7145e290 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c | |||
@@ -1388,16 +1388,16 @@ static int get_any_page(struct page *p, unsigned long pfn, int flags) | |||
1388 | */ | 1388 | */ |
1389 | if (!get_page_unless_zero(compound_head(p))) { | 1389 | if (!get_page_unless_zero(compound_head(p))) { |
1390 | if (PageHuge(p)) { | 1390 | if (PageHuge(p)) { |
1391 | pr_info("get_any_page: %#lx free huge page\n", pfn); | 1391 | pr_info("%s: %#lx free huge page\n", __func__, pfn); |
1392 | ret = dequeue_hwpoisoned_huge_page(compound_head(p)); | 1392 | ret = dequeue_hwpoisoned_huge_page(compound_head(p)); |
1393 | } else if (is_free_buddy_page(p)) { | 1393 | } else if (is_free_buddy_page(p)) { |
1394 | pr_info("get_any_page: %#lx free buddy page\n", pfn); | 1394 | pr_info("%s: %#lx free buddy page\n", __func__, pfn); |
1395 | /* Set hwpoison bit while page is still isolated */ | 1395 | /* Set hwpoison bit while page is still isolated */ |
1396 | SetPageHWPoison(p); | 1396 | SetPageHWPoison(p); |
1397 | ret = 0; | 1397 | ret = 0; |
1398 | } else { | 1398 | } else { |
1399 | pr_info("get_any_page: %#lx: unknown zero refcount page type %lx\n", | 1399 | pr_info("%s: %#lx: unknown zero refcount page type %lx\n", |
1400 | pfn, p->flags); | 1400 | __func__, pfn, p->flags); |
1401 | ret = -EIO; | 1401 | ret = -EIO; |
1402 | } | 1402 | } |
1403 | } else { | 1403 | } else { |