Commit b41418f4 authored by David S. Miller's avatar David S. Miller

sparc: Most unaligned_64.c tweaks for branch tracer warnings.

arch/sparc/kernel/unaligned_64.c: In function 'handle_lddfmna':
arch/sparc/kernel/unaligned_64.c:592: warning: 'second' may be used uninitialized in this function
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a638f25a
...@@ -589,7 +589,6 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr ...@@ -589,7 +589,6 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
unsigned long pc = regs->tpc; unsigned long pc = regs->tpc;
unsigned long tstate = regs->tstate; unsigned long tstate = regs->tstate;
u32 insn; u32 insn;
u32 first, second;
u64 value; u64 value;
u8 freg; u8 freg;
int flag; int flag;
...@@ -601,19 +600,20 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr ...@@ -601,19 +600,20 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
pc = (u32)pc; pc = (u32)pc;
if (get_user(insn, (u32 __user *) pc) != -EFAULT) { if (get_user(insn, (u32 __user *) pc) != -EFAULT) {
int asi = decode_asi(insn, regs); int asi = decode_asi(insn, regs);
u32 first, second;
int err; int err;
if ((asi > ASI_SNFL) || if ((asi > ASI_SNFL) ||
(asi < ASI_P)) (asi < ASI_P))
goto daex; goto daex;
first = second = 0;
err = get_user(first, (u32 __user *)sfar); err = get_user(first, (u32 __user *)sfar);
if (!err) if (!err)
err = get_user(second, (u32 __user *)(sfar + 4)); err = get_user(second, (u32 __user *)(sfar + 4));
if (err) { if (err) {
if (asi & 0x2) /* NF */ { if (!(asi & 0x2))
first = 0; second = 0;
} else
goto daex; goto daex;
first = second = 0;
} }
save_and_clear_fpu(); save_and_clear_fpu();
freg = ((insn >> 25) & 0x1e) | ((insn >> 20) & 0x20); freg = ((insn >> 25) & 0x1e) | ((insn >> 20) & 0x20);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment