Skip to content

Commit 23f8c18

Browse files
committed
arch: add do_page_fault prototypes
do_page_fault() is missing a declaration on a couple of architectures: arch/alpha/mm/fault.c:85:1: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] arch/csky/mm/fault.c:187:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] arch/mips/mm/fault.c:323:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] arch/nios2/mm/fault.c:43:17: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] arch/sh/mm/fault.c:389:27: error: no previous prototype for 'do_page_fault' [-Werror=missing-prototypes] Since the calling conventions are architecture specific here, add separate prototypes for each one. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 1d6571a commit 23f8c18

5 files changed

Lines changed: 12 additions & 0 deletions

File tree

arch/alpha/include/asm/mmu_context.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ ev4_switch_mm(struct mm_struct *prev_mm, struct mm_struct *next_mm,
183183
}
184184

185185
extern void __load_new_mm_context(struct mm_struct *);
186+
asmlinkage void do_page_fault(unsigned long address, unsigned long mmcsr,
187+
long cause, struct pt_regs *regs);
186188

187189
#ifdef CONFIG_SMP
188190
#define check_mmu_context() \

arch/csky/include/asm/traps.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ asmlinkage void trap_c(struct pt_regs *regs);
5555
asmlinkage void do_notify_resume(struct pt_regs *regs,
5656
unsigned long thread_info_flags);
5757

58+
asmlinkage void do_page_fault(struct pt_regs *regs);
59+
5860
#endif /* __ASM_CSKY_TRAPS_H */

arch/mips/include/asm/traps.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ extern char except_vec_nmi[];
3939
register_nmi_notifier(&fn##_nb); \
4040
})
4141

42+
asmlinkage void do_page_fault(struct pt_regs *regs,
43+
unsigned long write, unsigned long address);
44+
4245
#endif /* _ASM_TRAPS_H */

arch/nios2/include/asm/traps.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#ifndef __ASSEMBLY__
1616
void _exception(int signo, struct pt_regs *regs, int code, unsigned long addr);
17+
void do_page_fault(struct pt_regs *regs, unsigned long cause,
18+
unsigned long address);
1719
#endif
1820

1921
#endif /* _ASM_NIOS2_TRAPS_H */

arch/sh/include/asm/traps_32.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ static inline void trigger_address_error(void)
4343
asmlinkage void do_address_error(struct pt_regs *regs,
4444
unsigned long writeaccess,
4545
unsigned long address);
46+
asmlinkage void do_page_fault(struct pt_regs *regs,
47+
unsigned long error_code,
48+
unsigned long address);
4649
asmlinkage void do_divide_error(unsigned long r4);
4750
asmlinkage void do_reserved_inst(void);
4851
asmlinkage void do_illegal_slot_inst(void);

0 commit comments

Comments
 (0)