diff options
Diffstat (limited to 'arch/mips/include/asm/mmzone.h')
| -rw-r--r-- | arch/mips/include/asm/mmzone.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/mips/include/asm/mmzone.h b/arch/mips/include/asm/mmzone.h index f53ec54c92ff..602a21aee9d4 100644 --- a/arch/mips/include/asm/mmzone.h +++ b/arch/mips/include/asm/mmzone.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99 * Rewritten for Linux 2.6 by Christoph Hellwig (hch@lst.de) Jan 2004 @@ -6,12 +7,17 @@ #define _ASM_MMZONE_H_ #include <asm/page.h> -#include <mmzone.h> -#ifdef CONFIG_DISCONTIGMEM +#ifdef CONFIG_NUMA +# include <mmzone.h> +#endif -#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT) +#ifndef pa_to_nid +#define pa_to_nid(addr) 0 +#endif -#endif /* CONFIG_DISCONTIGMEM */ +#ifndef nid_to_addrbase +#define nid_to_addrbase(nid) 0 +#endif #endif /* _ASM_MMZONE_H_ */ |
