]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34f81c2ec69d01848c2493b9394277e059ddce6c
tree534d9c6702d4bd7bb8f9ed7521d563ef0f5bc1b4
parent5e4d3a0633aafb6db9272f6f93c27dabaa332868
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