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>
This commit is contained in:
Tobias Klauser 2016-11-09 15:31:00 +08:00 коммит произвёл Ley Foon Tan
Родитель 69973b8308
Коммит 3c98fd266b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -76,8 +76,6 @@ extern unsigned long memory_size;
extern struct page *mem_map; extern struct page *mem_map;
#endif /* !__ASSEMBLY__ */
# define __pa(x) \ # define __pa(x) \
((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
# define __va(x) \ # define __va(x) \
@ -106,4 +104,6 @@ extern struct page *mem_map;
#include <asm-generic/getorder.h> #include <asm-generic/getorder.h>
#endif /* !__ASSEMBLY__ */
#endif /* _ASM_NIOS2_PAGE_H */ #endif /* _ASM_NIOS2_PAGE_H */