]> 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)
commit54f6560fe8aff8e80e9ab906f6b11b42fc8076f4
tree534d9c6702d4bd7bb8f9ed7521d563ef0f5bc1b4
parent432570b8292cba0879ba95b78547963e5ad1b3ae
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