Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Do not add '-mhard-float' to dml_ccflags for clang

When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it
warns:

clang-16: error: argument unused during compilation: '-mhard-float' [-Werror,-Wunused-command-line-argument]

Similar to commit 84edc2eff827 ("selftest/fpu: avoid clang warning"),
just add this flag to GCC builds. Commit 0f0727d971f6 ("drm/amd/display:
readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP
routines") added '-msse2' to prevent clang from emitting software
floating point routines.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Nathan Chancellor and committed by
Masahiro Yamada
7db038d9 66bfe497

+2 -1
+2 -1
drivers/gpu/drm/amd/display/dc/dml/Makefile
··· 26 26 # subcomponents. 27 27 28 28 ifdef CONFIG_X86 29 - dml_ccflags := -mhard-float -msse 29 + dml_ccflags-$(CONFIG_CC_IS_GCC) := -mhard-float 30 + dml_ccflags := $(dml_ccflags-y) -msse 30 31 endif 31 32 32 33 ifdef CONFIG_PPC64