diff options
author | Ingo Molnar <mingo@kernel.org> | 2020-01-10 20:53:14 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-10 20:53:14 +0300 |
commit | 57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e (patch) | |
tree | eaa43171e82737e8b33239e2e9bc3b4de67b7ddd /include/linux/mm.h | |
parent | 02df083201272c0c2e061b18d9c20635974abf6d (diff) | |
parent | 186525bd6b83efc592672e2d6185e4d7c810d2b4 (diff) | |
download | linux-57ad87ddce79b6d54f8e442d0ecf4b5bbe8c5a9e.tar.xz |
Merge branch 'x86/mm' into efi/core, to pick up dependencies
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 80a9162b406c..5dfbc0e56e67 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -625,24 +625,19 @@ unsigned long vmalloc_to_pfn(const void *addr); * On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there * is no special casing required. */ -static inline bool is_vmalloc_addr(const void *x) -{ -#ifdef CONFIG_MMU - unsigned long addr = (unsigned long)x; - - return addr >= VMALLOC_START && addr < VMALLOC_END; -#else - return false; -#endif -} #ifndef is_ioremap_addr #define is_ioremap_addr(x) is_vmalloc_addr(x) #endif #ifdef CONFIG_MMU +extern bool is_vmalloc_addr(const void *x); extern int is_vmalloc_or_module_addr(const void *x); #else +static inline bool is_vmalloc_addr(const void *x) +{ + return false; +} static inline int is_vmalloc_or_module_addr(const void *x) { return 0; |