summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn302
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-01-25 13:23:20 +0100
committerAlex Deucher <alexander.deucher@amd.com>2021-01-25 17:48:46 -0500
commit4a517faa34030dde326017431bc9f056c3076266 (patch)
treecd085e70aff5a8418341eb9b875605447d584492 /drivers/gpu/drm/amd/display/dc/dcn302
parentd3abc78f4fd4b4b45b978ae42b5a9d82ee3b8864 (diff)
downloadlinux-stable-4a517faa34030dde326017431bc9f056c3076266.tar.gz
linux-stable-4a517faa34030dde326017431bc9f056c3076266.tar.bz2
linux-stable-4a517faa34030dde326017431bc9f056c3076266.zip
amdgpu: fix clang build warning
clang warns about the -mhard-float command line arguments on architectures that do not support this: clang: error: argument unused during compilation: '-mhard-float' [-Werror,-Wunused-command-line-argument] Move this into the gcc-specific arguments. Fixes: e77165bf7b02 ("drm/amd/display: Add DCN3 blocks to Makefile") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn302')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn302/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn302/Makefile b/drivers/gpu/drm/amd/display/dc/dcn302/Makefile
index 8d4924b7dc22..101620a8867a 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn302/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/dcn302/Makefile
@@ -13,7 +13,7 @@
DCN3_02 = dcn302_init.o dcn302_hwseq.o dcn302_resource.o
ifdef CONFIG_X86
-CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -msse
+CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -msse
endif
ifdef CONFIG_PPC64
@@ -24,6 +24,7 @@ ifdef CONFIG_CC_IS_GCC
ifeq ($(call cc-ifversion, -lt, 0701, y), y)
IS_OLD_GCC = 1
endif
+CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -mhard-float
endif
ifdef CONFIG_X86