diff options
author | Ingo Molnar <mingo@kernel.org> | 2022-02-17 10:05:32 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-03-15 12:57:33 +0100 |
commit | 37b3d3fa9f12f9d9c955deec8d10881a0d052d12 (patch) | |
tree | 2a261aeb6a95fc86ba7bf7a4c5d3ba2af7186ebd | |
parent | e23480dd1d39e4800dfe99edb15f61746e64048b (diff) | |
download | tip-37b3d3fa9f12f9d9c955deec8d10881a0d052d12.tar.gz |
headers/deps: mm: Move __pa_symbol() and lm_alias() fallback definitions from <linux/mm_api.h> to <linux/pgtable_api.h>
These are rarely used API, but they also depend on <asm/page.h>, which is
not necessarily included by <linux/mm_api.h>.
Move it over to the low level pagetable API header: <linux/pgtable_api.h>.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/mm_api.h | 8 | ||||
-rw-r--r-- | include/linux/pgtable_api.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/mm_api.h b/include/linux/mm_api.h index e647821d176b8..43885a14987f0 100644 --- a/include/linux/mm_api.h +++ b/include/linux/mm_api.h @@ -2301,14 +2301,6 @@ madvise_set_anon_name(struct mm_struct *mm, unsigned long start, } #endif -#ifndef __pa_symbol -#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) -#endif - -#ifndef lm_alias -#define lm_alias(x) __va(__pa_symbol(x)) -#endif - #endif /* !__ASSEMBLY__ */ #endif /* _LINUX_MM_API_H */ diff --git a/include/linux/pgtable_api.h b/include/linux/pgtable_api.h index cd2d5d1714598..0c29d51ff6813 100644 --- a/include/linux/pgtable_api.h +++ b/include/linux/pgtable_api.h @@ -1614,4 +1614,12 @@ typedef unsigned int pgtbl_mod_mask; #define MAX_PTRS_PER_P4D PTRS_PER_P4D #endif +#ifndef __pa_symbol +#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) +#endif + +#ifndef lm_alias +#define lm_alias(x) __va(__pa_symbol(x)) +#endif + #endif /* _LINUX_PGTABLE_API_H */ |