summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-11-09 15:31:00 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2016-12-13 17:13:17 +0800
commit3c98fd266b76e04fd59d294f2fb588cc5cb4c212 (patch)
tree26e64ebe535ee8f2d0ccc51e098920dd4976a248 /arch/nios2
parent69973b830859bc6529a7a0468ba0d80ee5117826 (diff)
downloadlinux-3c98fd266b76e04fd59d294f2fb588cc5cb4c212.tar.bz2
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')
-rw-r--r--arch/nios2/include/asm/page.h4
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 */