drm/amd/display: Support clang option for stack alignment
authorArnd Bergmann <arnd@arndb.de>
Fri, 12 Jul 2019 09:37:00 +0000 (11:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 18:02:39 +0000 (13:02 -0500)
commit7e446b3c76b4ef0d3808305c0a51f895236b37bf
tree33bb05e0d2f78affc3677d4345f0225caf2dcf6f
parent64974ab24908a92b5dfe52e1ace3d67c47d657cb
drm/amd/display: Support clang option for stack alignment

As previously fixed for dml in commit 4769278e5c7f ("amdgpu/dc/dml:
Support clang option for stack alignment") and calcs in commit
cc32ad8f559c ("amdgpu/dc/calcs: Support clang option for stack
alignment"), dcn20 uses an option that is not available with clang:

clang: error: unknown argument: '-mpreferred-stack-boundary=4'
scripts/Makefile.build:281: recipe for target 'drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.o' failed

Use the same trick that we have in the other two files.

Fixes: 7ed4e6352c16 ("drm/amd/display: Add DCN2 HW Sequencer and Resource")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/Makefile
drivers/gpu/drm/amd/display/dc/dsc/Makefile