]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/math-emu: Remove -w build flag and fix warnings
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 2 Sep 2022 16:00:09 +0000 (18:00 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:28:25 +0000 (17:28 +1000)
commit0ef27cb88808b6e436b0c405a7f8286c9d251b05
treed20995094f90f06a2c95c4c0414a2b06c57067d3
parent4e96ecb8d4123ca58468e9764b9e7b9e5feca2d1
powerpc/math-emu: Remove -w build flag and fix warnings

As reported by Nathan, the module_init() macro was not taken into
account because the header was missing. That means spe_mathemu_init()
was never called.

This should have been detected by gcc at build time, but due to
'-w' flag it went undetected.

Removing that flag leads to many warnings hence errors.

Fix those warnings then remove the -w flag.

Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/2663961738a46073713786d4efeb53100ca156e7.1662134272.git.christophe.leroy@csgroup.eu
arch/powerpc/math-emu/Makefile
arch/powerpc/math-emu/math.c
arch/powerpc/math-emu/math_efp.c
include/math-emu/op-common.h