mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
24 lines
506 B
C
24 lines
506 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_S390_SPARSEMEM_H
|
|
#define _ASM_S390_SPARSEMEM_H
|
|
|
|
#define SECTION_SIZE_BITS 27
|
|
#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 */
|