diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-11-09 10:31:00 +0300 |
---|---|---|
committer | Ley Foon Tan <ley.foon.tan@intel.com> | 2016-12-13 12:13:17 +0300 |
commit | 3c98fd266b76e04fd59d294f2fb588cc5cb4c212 (patch) | |
tree | 26e64ebe535ee8f2d0ccc51e098920dd4976a248 /arch/nios2/include/asm | |
parent | 69973b830859bc6529a7a0468ba0d80ee5117826 (diff) | |
download | linux-3c98fd266b76e04fd59d294f2fb588cc5cb4c212.tar.xz |
nios2: Extend !__ASSEMBLY__ section in asm/page.h
Some C-only definition from nios2 asm/page.h are exposed to assembly code.
Extend the !__ASSEMBLY__ section to prevent this.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/nios2/include/asm')
-rw-r--r-- | arch/nios2/include/asm/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nios2/include/asm/page.h b/arch/nios2/include/asm/page.h index c1683f51ad0f..74477ab66f65 100644 --- a/arch/nios2/include/asm/page.h +++ b/arch/nios2/include/asm/page.h @@ -76,8 +76,6 @@ extern unsigned long memory_size; extern struct page *mem_map; -#endif /* !__ASSEMBLY__ */ - # define __pa(x) \ ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) # define __va(x) \ @@ -106,4 +104,6 @@ extern struct page *mem_map; #include <asm-generic/getorder.h> +#endif /* !__ASSEMBLY__ */ + #endif /* _ASM_NIOS2_PAGE_H */ |