]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/sparsemem: Provide phys_to_target_node() with CONFIG_NUMA
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 4 Nov 2024 10:03:41 +0000 (11:03 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 09:33:44 +0000 (10:33 +0100)
commite89204070dac190bb38d4e4e87c9a0c88664f385
treeaad301581f360b22e7aef9fc672e0e864538333f
parent5e91e2f09cbae5144324bbcfe3204e381cf2dfaa
s390/sparsemem: Provide phys_to_target_node() with CONFIG_NUMA

Add a trival phys_to_target_node() implementation which always returns 0 if
CONFIG_NUMA is enabled, since the s390 NUMA implementation only supports
node 0.
This is similar to memory_add_physaddr_to_nid() in order to avoid runtime
warnings.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/sparsemem.h