diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-11-04 11:03:41 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-11-07 10:33:44 +0100 |
commit | e89204070dac190bb38d4e4e87c9a0c88664f385 (patch) | |
tree | aad301581f360b22e7aef9fc672e0e864538333f /arch | |
parent | 5e91e2f09cbae5144324bbcfe3204e381cf2dfaa (diff) | |
download | linux-stable-e89204070dac190bb38d4e4e87c9a0c88664f385.tar.gz linux-stable-e89204070dac190bb38d4e4e87c9a0c88664f385.tar.bz2 linux-stable-e89204070dac190bb38d4e4e87c9a0c88664f385.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/sparsemem.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/include/asm/sparsemem.h b/arch/s390/include/asm/sparsemem.h index 6377b7ea8a40..668dfc5de538 100644 --- a/arch/s390/include/asm/sparsemem.h +++ b/arch/s390/include/asm/sparsemem.h @@ -6,11 +6,19 @@ #define MAX_PHYSMEM_BITS CONFIG_MAX_PHYSMEM_BITS #ifdef CONFIG_NUMA + static inline int memory_add_physaddr_to_nid(u64 addr) { return 0; } #define memory_add_physaddr_to_nid memory_add_physaddr_to_nid + +static inline int phys_to_target_node(u64 start) +{ + return 0; +} +#define phys_to_target_node phys_to_target_node + #endif /* CONFIG_NUMA */ #endif /* _ASM_S390_SPARSEMEM_H */ |