diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-12 02:46:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-12 02:46:40 -0400 |
commit | 7e0b1e6186c755becf8b19c844c63db1a551898b (patch) | |
tree | eb98461a5b4eee6fbafbbe961c96a010b477d934 /arch/sparc64/kernel | |
parent | d8ada0a2cd11c991d8193a3f7d37f1806c93c4a0 (diff) |
sparc64: Fix sparse warnings in visemul.c
1) edge8 tables should be static
2) add vis_emul() extern decl. to asm/visasm.h
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r-- | arch/sparc64/kernel/traps.c | 1 | ||||
-rw-r--r-- | arch/sparc64/kernel/visemul.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/arch/sparc64/kernel/traps.c b/arch/sparc64/kernel/traps.c index 71644da6cad1..9378896589f0 100644 --- a/arch/sparc64/kernel/traps.c +++ b/arch/sparc64/kernel/traps.c | |||
@@ -2270,7 +2270,6 @@ void die_if_kernel(char *str, struct pt_regs *regs) | |||
2270 | 2270 | ||
2271 | extern int handle_popc(u32 insn, struct pt_regs *regs); | 2271 | extern int handle_popc(u32 insn, struct pt_regs *regs); |
2272 | extern int handle_ldf_stq(u32 insn, struct pt_regs *regs); | 2272 | extern int handle_ldf_stq(u32 insn, struct pt_regs *regs); |
2273 | extern int vis_emul(struct pt_regs *, unsigned int); | ||
2274 | 2273 | ||
2275 | void do_illegal_instruction(struct pt_regs *regs) | 2274 | void do_illegal_instruction(struct pt_regs *regs) |
2276 | { | 2275 | { |
diff --git a/arch/sparc64/kernel/visemul.c b/arch/sparc64/kernel/visemul.c index c3fd64706b53..9e05cb5cb855 100644 --- a/arch/sparc64/kernel/visemul.c +++ b/arch/sparc64/kernel/visemul.c | |||
@@ -243,7 +243,7 @@ static inline unsigned int *fps_regaddr(struct fpustate *f, | |||
243 | struct edge_tab { | 243 | struct edge_tab { |
244 | u16 left, right; | 244 | u16 left, right; |
245 | }; | 245 | }; |
246 | struct edge_tab edge8_tab[8] = { | 246 | static struct edge_tab edge8_tab[8] = { |
247 | { 0xff, 0x80 }, | 247 | { 0xff, 0x80 }, |
248 | { 0x7f, 0xc0 }, | 248 | { 0x7f, 0xc0 }, |
249 | { 0x3f, 0xe0 }, | 249 | { 0x3f, 0xe0 }, |
@@ -253,7 +253,7 @@ struct edge_tab edge8_tab[8] = { | |||
253 | { 0x03, 0xfe }, | 253 | { 0x03, 0xfe }, |
254 | { 0x01, 0xff }, | 254 | { 0x01, 0xff }, |
255 | }; | 255 | }; |
256 | struct edge_tab edge8_tab_l[8] = { | 256 | static struct edge_tab edge8_tab_l[8] = { |
257 | { 0xff, 0x01 }, | 257 | { 0xff, 0x01 }, |
258 | { 0xfe, 0x03 }, | 258 | { 0xfe, 0x03 }, |
259 | { 0xfc, 0x07 }, | 259 | { 0xfc, 0x07 }, |
@@ -263,23 +263,23 @@ struct edge_tab edge8_tab_l[8] = { | |||
263 | { 0xc0, 0x7f }, | 263 | { 0xc0, 0x7f }, |
264 | { 0x80, 0xff }, | 264 | { 0x80, 0xff }, |
265 | }; | 265 | }; |
266 | struct edge_tab edge16_tab[4] = { | 266 | static struct edge_tab edge16_tab[4] = { |
267 | { 0xf, 0x8 }, | 267 | { 0xf, 0x8 }, |
268 | { 0x7, 0xc }, | 268 | { 0x7, 0xc }, |
269 | { 0x3, 0xe }, | 269 | { 0x3, 0xe }, |
270 | { 0x1, 0xf }, | 270 | { 0x1, 0xf }, |
271 | }; | 271 | }; |
272 | struct edge_tab edge16_tab_l[4] = { | 272 | static struct edge_tab edge16_tab_l[4] = { |
273 | { 0xf, 0x1 }, | 273 | { 0xf, 0x1 }, |
274 | { 0xe, 0x3 }, | 274 | { 0xe, 0x3 }, |
275 | { 0xc, 0x7 }, | 275 | { 0xc, 0x7 }, |
276 | { 0x8, 0xf }, | 276 | { 0x8, 0xf }, |
277 | }; | 277 | }; |
278 | struct edge_tab edge32_tab[2] = { | 278 | static struct edge_tab edge32_tab[2] = { |
279 | { 0x3, 0x2 }, | 279 | { 0x3, 0x2 }, |
280 | { 0x1, 0x3 }, | 280 | { 0x1, 0x3 }, |
281 | }; | 281 | }; |
282 | struct edge_tab edge32_tab_l[2] = { | 282 | static struct edge_tab edge32_tab_l[2] = { |
283 | { 0x3, 0x1 }, | 283 | { 0x3, 0x1 }, |
284 | { 0x2, 0x3 }, | 284 | { 0x2, 0x3 }, |
285 | }; | 285 | }; |