Skip to content

Commit 7db038d

Browse files
nathanchancemasahir0y
authored andcommitted
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 84edc2e ("selftest/fpu: avoid clang warning"), just add this flag to GCC builds. Commit 0f0727d ("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>
1 parent 66bfe49 commit 7db038d

File tree

1 file changed

+2
-1
lines changed
  • drivers/gpu/drm/amd/display/dc/dml

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# subcomponents.
2727

2828
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
3031
endif
3132

3233
ifdef CONFIG_PPC64

0 commit comments

Comments
 (0)