Skip to content

Commit

Permalink
nios2: Extend !__ASSEMBLY__ section in asm/page.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ley Foon Tan <[email protected]>
  • Loading branch information
tklauser authored and Ley Foon Tan committed Dec 13, 2016
1 parent 69973b8 commit 3c98fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/nios2/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -106,4 +104,6 @@ extern struct page *mem_map;

#include <asm-generic/getorder.h>

#endif /* !__ASSEMBLY__ */

#endif /* _ASM_NIOS2_PAGE_H */

0 comments on commit 3c98fd2

Please sign in to comment.