OSDN Git Service

arm64: mm: Drop pointless call to set_max_mapnr()
authorWill Deacon <will@kernel.org>
Wed, 29 Sep 2021 12:54:04 +0000 (13:54 +0100)
committerWill Deacon <will@kernel.org>
Wed, 29 Sep 2021 12:54:04 +0000 (13:54 +0100)
commite63cf610ead18d5f8df0739a36cba57ccba43f6b
tree99b21842b901edb08a0ad5c49f97c4046cae491a
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29
arm64: mm: Drop pointless call to set_max_mapnr()

set_max_mapnr() is an empty stub function if CONFIG_NUMA=y, otherwise it
assigns to the 'max_mapnr' variable which is used to provide a generic
pfn_valid() implementation if CONFIG_MMU=n.

Since we don't support nommu on arm64, drop the pointless call to
set_max_mapnr() from mem_init().

Link: https://lore.kernel.org/r/130a50d7-92fd-31fa-261e-f73dadcb4fcf@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/init.c