Michael Ellerman d208e13c6a powerpc/process: Fix uninitialised variable error
Clang, and GCC with -Wmaybe-uninitialized, can't see that val is
unused in get_fpexec_mode():

  arch/powerpc/kernel/process.c:1940:7: error: variable 'val' is used
  uninitialized whenever 'if' condition is true
		  if (cpu_has_feature(CPU_FTR_SPE)) {
		      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

We know that CPU_FTR_SPE will only be true iff CONFIG_SPE is also
true, but the compiler doesn't.

Avoid it by initialising val to zero.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 532ed1900d37 ("powerpc/process: Remove useless #ifdef CONFIG_SPE")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20200917024509.3253837-1-mpe@ellerman.id.au
2020-09-18 18:12:46 +10:00
..
2020-08-07 18:48:15 -07:00
2020-08-07 10:33:50 -07:00
2020-09-02 11:00:19 +10:00
2019-08-30 09:52:57 +10:00
2020-07-27 00:01:30 +10:00
2020-06-05 12:39:30 -07:00
2020-05-26 23:36:57 +10:00
2020-07-18 22:43:55 +10:00
2020-06-05 12:39:30 -07:00
2020-09-16 22:13:32 +10:00
2020-05-26 23:36:51 +10:00
2020-07-16 13:12:47 +10:00
2020-06-05 12:39:30 -07:00