drm/amd/display: Don't use mpreferred-stack-boundary for clang on DCN201
Subsystems (3)
Harry Wentland
maintainerPATCH 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")
Signed-off-by Harry Wentland <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn201/Makefile | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn201/Makefile +3 -0
@@ -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
Quoted 8 lines · Harry Wentland
We were erroneously setting
IS_OLD_GCCfor 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")Signed-off-by Harry Wentland <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
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@@ -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