mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
sparc64: fix sparse warnings in sys_sparc_64.c + unaligned_64.c
Fix following warnings: kernel/sys_sparc_64.c:643:17: warning: symbol 'sys_kern_features' was not declared. Should it be static? kernel/unaligned_64.c:297:17: warning: symbol 'kernel_unaligned_trap' was not declared. Should it be static? kernel/unaligned_64.c:387:5: warning: symbol 'handle_popc' was not declared. Should it be static? kernel/unaligned_64.c:428:5: warning: symbol 'handle_ldf_stq' was not declared. Should it be static? kernel/unaligned_64.c:553:6: warning: symbol 'handle_ld_nf' was not declared. Should it be static? kernel/unaligned_64.c:579:6: warning: symbol 'handle_lddfmna' was not declared. Should it be static? kernel/unaligned_64.c:643:6: warning: symbol 'handle_stdfmna' was not declared. Should it be static? Functions that are only used in kernel/ - add prototypes in kernel.h Functions used outside kernel/ - add prototype in asm/setup.h Removed local prototypes One of the local prototypes had wrong signature (return void - not int). Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d158450427
commit
8df52620e6
6 changed files with 23 additions and 8 deletions
|
@ -23,6 +23,16 @@ static inline unsigned long kimage_addr_to_ra(const char *p)
|
|||
|
||||
return kern_base + (val - KERNBASE);
|
||||
}
|
||||
|
||||
/* sys_sparc_64.c */
|
||||
asmlinkage long sys_kern_features(void);
|
||||
|
||||
/* unaligned_64.c */
|
||||
asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn);
|
||||
int handle_popc(u32 insn, struct pt_regs *regs);
|
||||
void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
|
||||
void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPARC32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue