Skip to contentSkip to conversation

drm/amd/display: Don't use mpreferred-stack-boundary for clang on DCN201

PATCH In review Harry Wentland 2 participants 2 messages Sep 30, 2021

Subsystems (3)
lore
Share & tools
lore

Harry Wentland

author maintainer
#0 lore raw

PATCH 1/1 drm/amd/display: Don't use mpreferred-stack-boundary for clang on DCN201

We were erroneously setting IS_OLD_GCC for clang since we didn't check first whether we're doing a GCC build.

See dcn30/Makefile for reference.

Fixes 4ac93fa0ec12 ("drm/amd/display: add cyan_skillfish display support")
---
 drivers/gpu/drm/amd/display/dc/dcn201/Makefile | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn201/Makefile +3 -0
index d98d69705117..f68038ceb1b1 100644
@@ -14,9 +14,12 @@ ifdef CONFIG_PPC64
 CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o := -mhard-float -maltivec
 endif
 
+ifdef CONFIG_CC_IS_GCC
 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
 IS_OLD_GCC = 1
 endif
+CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -mhard-float
+endif
 
 ifdef CONFIG_X86
 ifdef IS_OLD_GCC
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Harry Wentland

We were erroneously setting IS_OLD_GCC for clang since we didn't check first whether we're doing a GCC build.

See dcn30/Makefile for reference.

Fixes 4ac93fa0ec12 ("drm/amd/display: add cyan_skillfish display support")
Quoted 24 lines
---
 drivers/gpu/drm/amd/display/dc/dcn201/Makefile | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn201/Makefile +3 -1
index d98d69705117..f68038ceb1b1 100644
@@ -14,9 +14,12 @@ ifdef CONFIG_PPC64
 CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o := -mhard-float -maltivec
 endif
 
+ifdef CONFIG_CC_IS_GCC
 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
 IS_OLD_GCC = 1
 endif
+CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -mhard-float
+endif
 
 ifdef CONFIG_X86
 ifdef IS_OLD_GCC
--

2.33.0