Commit 4d369680 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: -Wmissing-prototype warning fixes

Anrd reported [1] new compiler warnings due to -Wmissing-protype.
These are for non static functions mostly used in asm code hence not
exported already. Fix this by adding the prototypes.

[1] https://lore.kernel.org/lkml/20230810141947.1236730-1-arnd@kernel.org



Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarVineet Gupta <vgupta@kernel.org>
parent 2ccdd1b1
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
#include <asm/processor.h>	/* For VMALLOC_START */
#include <asm/mmu.h>

#ifdef __ASSEMBLY__

#ifdef CONFIG_ISA_ARCOMPACT
#include <asm/entry-compact.h>	/* ISA specific bits */
#else
@@ -295,4 +297,23 @@

#endif	/* CONFIG_ARC_CURR_IN_REG */

#else	/* !__ASSEMBLY__ */

extern void do_signal(struct pt_regs *);
extern void do_notify_resume(struct pt_regs *);
extern int do_privilege_fault(unsigned long, struct pt_regs *);
extern int do_extension_fault(unsigned long, struct pt_regs *);
extern int insterror_is_error(unsigned long, struct pt_regs *);
extern int do_memory_error(unsigned long, struct pt_regs *);
extern int trap_is_brkpt(unsigned long, struct pt_regs *);
extern int do_misaligned_error(unsigned long, struct pt_regs *);
extern int do_trap5_error(unsigned long, struct pt_regs *);
extern int do_misaligned_access(unsigned long, struct pt_regs *, struct callee_regs *);
extern void do_machine_check_fault(unsigned long, struct pt_regs *);
extern void do_non_swi_trap(unsigned long, struct pt_regs *);
extern void do_insterror_or_kprobe(unsigned long, struct pt_regs *);
extern void do_page_fault(unsigned long, struct pt_regs *);

#endif

#endif  /* __ASM_ARC_ENTRY_H */
+1 −0
Original line number Diff line number Diff line
@@ -25,5 +25,6 @@
#include <asm-generic/irq.h>

extern void arc_init_IRQ(void);
extern void arch_do_IRQ(unsigned int, struct pt_regs *);

#endif
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,8 @@ typedef struct {
	unsigned long asid[NR_CPUS];	/* 8 bit MMU PID + Generation cycle */
} mm_context_t;

extern void do_tlb_overlap_fault(unsigned long, unsigned long, struct pt_regs *);

#endif

#include <asm/mmu-arcv2.h>
+3 −0
Original line number Diff line number Diff line
@@ -181,6 +181,9 @@ static inline unsigned long regs_get_register(struct pt_regs *regs,
	return *(unsigned long *)((unsigned long)regs + offset);
}

extern int syscall_trace_entry(struct pt_regs *);
extern void syscall_trace_exit(struct pt_regs *);

#endif /* !__ASSEMBLY__ */

#endif /* __ASM_PTRACE_H */
+2 −0
Original line number Diff line number Diff line
@@ -42,4 +42,6 @@ extern void arc_cache_init(void);
extern char *arc_cache_mumbojumbo(int cpu_id, char *buf, int len);
extern void read_decode_cache_bcr(void);

extern void __init handle_uboot_args(void);

#endif /* __ASMARC_SETUP_H */
Loading