summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/sparsemem.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/asm/sparsemem.h')
-rw-r--r--arch/s390/include/asm/sparsemem.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/arch/s390/include/asm/sparsemem.h b/arch/s390/include/asm/sparsemem.h
index a60d085ddb4d..668dfc5de538 100644
--- a/arch/s390/include/asm/sparsemem.h
+++ b/arch/s390/include/asm/sparsemem.h
@@ -1,16 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_S390_SPARSEMEM_H
#define _ASM_S390_SPARSEMEM_H
-#ifdef CONFIG_64BIT
+#define SECTION_SIZE_BITS 27
+#define MAX_PHYSMEM_BITS CONFIG_MAX_PHYSMEM_BITS
-#define SECTION_SIZE_BITS 28
-#define MAX_PHYSMEM_BITS 46
+#ifdef CONFIG_NUMA
-#else
+static inline int memory_add_physaddr_to_nid(u64 addr)
+{
+ return 0;
+}
+#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
-#define SECTION_SIZE_BITS 25
-#define MAX_PHYSMEM_BITS 31
+static inline int phys_to_target_node(u64 start)
+{
+ return 0;
+}
+#define phys_to_target_node phys_to_target_node
-#endif /* CONFIG_64BIT */
+#endif /* CONFIG_NUMA */
#endif /* _ASM_S390_SPARSEMEM_H */