Commit 71dd0b8ae83120db9ade1380fae7a49cc6b3f465
Committed by
Linus Torvalds
1 parent
08fa29d916
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
mm/memory-failure.c
... | ... | @@ -1388,16 +1388,16 @@ |
1388 | 1388 | */ |
1389 | 1389 | if (!get_page_unless_zero(compound_head(p))) { |
1390 | 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 | 1392 | ret = dequeue_hwpoisoned_huge_page(compound_head(p)); |
1393 | 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 | 1395 | /* Set hwpoison bit while page is still isolated */ |
1396 | 1396 | SetPageHWPoison(p); |
1397 | 1397 | ret = 0; |
1398 | 1398 | } else { |
1399 | - pr_info("get_any_page: %#lx: unknown zero refcount page type %lx\n", | |
1400 | - pfn, p->flags); | |
1399 | + pr_info("%s: %#lx: unknown zero refcount page type %lx\n", | |
1400 | + __func__, pfn, p->flags); | |
1401 | 1401 | ret = -EIO; |
1402 | 1402 | } |
1403 | 1403 | } else { |