mm/memory_hotplug: drop 'reason' argument from check_pfn_span()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Tue, 31 May 2022 09:04:41 +0000 (14:34 +0530)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:48:28 +0000 (19:48 -0700)
commit943189db4f3ed1445dd630dc0b96e115357c4330
tree534d9c6702d4bd7bb8f9ed7521d563ef0f5bc1b4
parent833de10ff58e230fba523ad618e17c93d33b6fa3
mm/memory_hotplug: drop 'reason' argument from check_pfn_span()

In check_pfn_span(), a 'reason' string is being used to recreate the
caller function name, while printing the warning message.  It is really
unnecessary as the warning message could just be printed inside the caller
depending on the return code.  Currently there are just two callers for
check_pfn_span() i.e __add_pages() and __remove_pages().  Let's clean this
up.

Link: https://lkml.kernel.org/r/20220531090441.170650-1-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory_hotplug.c