mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-25 16:49:33 +10:00
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
19 lines
717 B
Makefile
19 lines
717 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
math-emu-common-objs = math.o fre.o fsqrt.o fsqrts.o frsqrtes.o mtfsf.o mtfsfi.o
|
|
obj-$(CONFIG_MATH_EMULATION_HW_UNIMPLEMENTED) += $(math-emu-common-objs)
|
|
obj-$(CONFIG_MATH_EMULATION_FULL) += $(math-emu-common-objs) fabs.o fadd.o \
|
|
fadds.o fcmpo.o fcmpu.o fctiw.o \
|
|
fctiwz.o fdiv.o fdivs.o fmadd.o \
|
|
fmadds.o fmsub.o fmsubs.o fmul.o \
|
|
fmuls.o fnabs.o fneg.o fnmadd.o \
|
|
fnmadds.o fnmsub.o fnmsubs.o fres.o \
|
|
frsp.o fsel.o lfs.o frsqrte.o fsub.o \
|
|
fsubs.o mcrfs.o mffs.o mtfsb0.o \
|
|
mtfsb1.o stfiwx.o stfs.o math.o \
|
|
fmr.o lfd.o stfd.o
|
|
|
|
obj-$(CONFIG_SPE) += math_efp.o
|
|
|
|
CFLAGS_fabs.o = -fno-builtin-fabs
|
|
CFLAGS_math.o = -fno-builtin-fabs
|