]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit691ce06168ea26daa7f7ef4f12444760983445c8
tree99b21842b901edb08a0ad5c49f97c4046cae491a
parent875d56e13eab01967bd5d33adc78a50a61ab7b99
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