]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/memory_failure: let the compiler add the function name
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 3 May 2012 05:43:30 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:21 +0000 (15:46 +1000)
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>
mm/memory-failure.c

index c99ad4e6b88c91c2c1d348103cd51524183cfc11..ab1e7145e2909c8e1a02359fb1e148118c42e1b2 100644 (file)
@@ -1388,16 +1388,16 @@ static int get_any_page(struct page *p, unsigned long pfn, int flags)
         */
        if (!get_page_unless_zero(compound_head(p))) {
                if (PageHuge(p)) {
-                       pr_info("get_any_page: %#lx free huge page\n", pfn);
+                       pr_info("%s: %#lx free huge page\n", __func__, pfn);
                        ret = dequeue_hwpoisoned_huge_page(compound_head(p));
                } else if (is_free_buddy_page(p)) {
-                       pr_info("get_any_page: %#lx free buddy page\n", pfn);
+                       pr_info("%s: %#lx free buddy page\n", __func__, pfn);
                        /* Set hwpoison bit while page is still isolated */
                        SetPageHWPoison(p);
                        ret = 0;
                } else {
-                       pr_info("get_any_page: %#lx: unknown zero refcount page type %lx\n",
-                               pfn, p->flags);
+                       pr_info("%s: %#lx: unknown zero refcount page type %lx\n",
+                               __func__, pfn, p->flags);
                        ret = -EIO;
                }
        } else {