kernel_samsung_a53x/arch/powerpc/lib
Nathan Chancellor b131a99859 powerpc: xor_vmx: Add '-mhard-float' to CFLAGS
commit 35f20786c481d5ced9283ff42de5c69b65e5ed13 upstream.

arch/powerpc/lib/xor_vmx.o is built with '-msoft-float' (from the main
powerpc Makefile) and '-maltivec' (from its CFLAGS), which causes an
error when building with clang after a recent change in main:

  error: option '-msoft-float' cannot be specified with '-maltivec'
  make[6]: *** [scripts/Makefile.build:243: arch/powerpc/lib/xor_vmx.o] Error 1

Explicitly add '-mhard-float' before '-maltivec' in xor_vmx.o's CFLAGS
to override the previous inclusion of '-msoft-float' (as the last option
wins), which matches how other areas of the kernel use '-maltivec', such
as AMDGPU.

Cc: stable@vger.kernel.org
Closes: https://github.com/ClangBuiltLinux/linux/issues/1986
Link: 4792f912b2
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240127-ppc-xor_vmx-drop-msoft-float-v1-1-f24140e81376@kernel.org
[nathan: Fixed conflicts due to lack of 04e85bbf71c9 in older trees]
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 09:22:41 +01:00
..
alloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_wrappers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
code-patching.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_mc_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copypage_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copypage_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copyuser_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copyuser_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crtsavres.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
div64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error-inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
feature-fixups-test.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
feature-fixups.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hweight_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ldstfp.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile powerpc: xor_vmx: Add '-mhard-float' to CFLAGS 2024-11-19 09:22:41 +01:00
mem_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcmp_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcmp_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quad.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rheap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sstep.c powerpc/lib: Validate size for vector operations 2024-11-18 12:13:08 +01:00
string.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
strlen_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_code-patching.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_emulate_step.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_emulate_step_exec_instr.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmx-helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx_glue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00