openwrtv3/target/linux/generic
Jonas Gorski cf304f5a5e kernel: mips_disable_fpu: initialize fault_addr in fpu_emulator_cop1Handler
Code calling fpu_emulator_cop1Handler will pass on fault_addr, making gcc
complain about it not being initialized when the FPU emulator is disabled.

Fixes:

arch/mips/kernel/traps.c: In function 'do_fpe':
arch/mips/kernel/traps.c:864:22: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  process_fpemu_return(sig, fault_addr, fcr31);
                      ^
arch/mips/kernel/traps.c: In function 'do_ri':
arch/mips/kernel/traps.c:806:22: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  process_fpemu_return(sig, fault_addr, fcr31);
                      ^
arch/mips/kernel/traps.c:763:15: note: 'fault_addr' was declared here
  void __user *fault_addr;
               ^
arch/mips/kernel/traps.c: In function 'do_cpu':
arch/mips/kernel/traps.c:1421:28: error: 'fault_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   if (!process_fpemu_return(sig, fault_addr, fcr31) && !err)
                            ^
cc1: all warnings being treated as errors
make[7]: *** [arch/mips/kernel/traps.o] Error 1

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46184
2015-07-05 21:31:54 +00:00
..
base-files update the /init file to start /sbin/init 2013-03-13 18:11:13 +00:00
files kernel: b53: fix build with brcm47xx 2015-07-03 23:27:21 +00:00
image generic: relocate: make the cacheline size configurable 2015-03-30 20:20:10 +00:00
patches-3.18 kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
patches-4.0 kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
patches-4.1 kernel: mips_disable_fpu: initialize fault_addr in fpu_emulator_cop1Handler 2015-07-05 21:31:54 +00:00
config-3.18 kernel: add missing config symbol 2015-06-17 09:08:20 +00:00
config-4.0 kernel: add missing config symbol 2015-06-17 09:08:20 +00:00
config-4.1 kernel: add some missing config options for 4.1 2015-06-29 22:20:05 +00:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00