diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-16 17:25:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-18 22:01:30 -0400 |
commit | 8df52620e69884d165065a6be6691fe691f3ad39 (patch) | |
tree | 18900de14ed8b8f909422e06dda939c608d15f6b /arch/sparc/kernel/kernel.h | |
parent | d1584504270e048b758508556b39f6acfffb50ff (diff) |
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>
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r-- | arch/sparc/kernel/kernel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index 0ce0f96f3f1b..e122b4bf00f0 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h | |||
@@ -23,6 +23,16 @@ static inline unsigned long kimage_addr_to_ra(const char *p) | |||
23 | 23 | ||
24 | return kern_base + (val - KERNBASE); | 24 | return kern_base + (val - KERNBASE); |
25 | } | 25 | } |
26 | |||
27 | /* sys_sparc_64.c */ | ||
28 | asmlinkage long sys_kern_features(void); | ||
29 | |||
30 | /* unaligned_64.c */ | ||
31 | asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn); | ||
32 | int handle_popc(u32 insn, struct pt_regs *regs); | ||
33 | void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); | ||
34 | void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr); | ||
35 | |||
26 | #endif | 36 | #endif |
27 | 37 | ||
28 | #ifdef CONFIG_SPARC32 | 38 | #ifdef CONFIG_SPARC32 |