History

parisc: fix compilation errrors

Commit 0cfaee2af3a0 ("include/asm-generic/5level-fixup.h: fix variable 'p4d' set but not used") converted a few functions from macros to static inline, which causes parisc to complain, In file included from include/asm-generic/4level-fixup.h:38:0, from arch/parisc/include/asm/pgtable.h:5, from arch/parisc/include/asm/io.h:6, from include/linux/io.h:13, from sound/core/memory.c:9: include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'? #define p4d_t pgd_t ^ include/asm-generic/5level-fixup.h:24:28: note: in expansion of macro 'p4d_t' static inline int p4d_none(p4d_t p4d) ^~~~~ It is because "4level-fixup.h" is included before "asm/page.h" where "pgd_t" is defined.

Qian Cai committed 7 years ago

Commit bbcb03a1 parent cd961031 file · +1 −2Browse files

Unified · Split

arch/parisc/include/asm/pgtable.h+1−2
@@ -2,6 +2,7 @@ · 1 unmodified line
22 #ifndef _PARISC_PGTABLE_H
33 #define _PARISC_PGTABLE_H
44
5+#include <asm/page.h>
56 #include <asm-generic/4level-fixup.h>
67
78 #include <asm/fixmap.h>
@@ -98,8 +99,6 @@ static inline void purge_tlb_entries(struct mm_struct *mm, unsigned long addr) · 90 unmodified lines
9899
99100 #endif /* !__ASSEMBLY__ */
100101
101−#include <asm/page.h>
102−
103102 #define pte_ERROR(e) \
104103 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
105104 #define pmd_ERROR(e) \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t