From 3c98fd266b76e04fd59d294f2fb588cc5cb4c212 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 9 Nov 2016 15:31:00 +0800 Subject: 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 Acked-by: Ley Foon Tan --- arch/nios2/include/asm/page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/nios2/include/asm') 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 +#endif /* !__ASSEMBLY__ */ + #endif /* _ASM_NIOS2_PAGE_H */ -- cgit v1.2.3-59-g8ed1b