mm/sparse: remove unused parameters in sparse_remove_section()
authorYajun Deng <yajun.deng@linux.dev>
Wed, 7 Jun 2023 02:39:52 +0000 (10:39 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:04 +0000 (16:19 -0700)
commitbd5f79ab39367665f40e10c2486aa15e7a841490
treeb6a95b42cc799b2374f8b3f0c530e53567657688
parent061e62e8180d3fab378a52d868e29ceebe2fe1d2
mm/sparse: remove unused parameters in sparse_remove_section()

These parameters ms and map_offset are not used in
sparse_remove_section(), so remove them.

The __remove_section() is only called by __remove_pages(), remove it.  And
put the WARN_ON_ONCE() in sparse_remove_section().

Link: https://lkml.kernel.org/r/20230607023952.2247489-1-yajun.deng@linux.dev
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memory_hotplug.h
mm/memory_hotplug.c
mm/sparse.c