[Bug,97258] Polaris: no sound over HDMI
diff mbox

Message ID bug-97258-502-CDJTax25tl@http.bugs.freedesktop.org/
State New
Headers show

Commit Message

bugzilla-daemon@freedesktop.org Aug. 9, 2016, 2:50 p.m. UTC
https://bugs.freedesktop.org/show_bug.cgi?id=97258

--- Comment #4 from Alex Deucher <alexdeucher@gmail.com> ---
(In reply to Marius Orcsik from comment #3)
> Well, the compile of amd-staging-4.6 failed too:
> 
> 
>   CC [M] 
> drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce80/i2c_sw_engine_dce80.o
> drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce80/i2c_sw_engine_dce80.c:53:
> 23: error: 'ddc_hw_status_addr' defined but not used
> [-Werror=unused-const-variable=]
>  static const uint32_t ddc_hw_status_addr[] = {
>                        ^~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[4]: *** [scripts/Makefile.build:292:
> drivers/gpu/drm/amd/amdgpu/../dal/dc/i2caux/dce80/i2c_sw_engine_dce80.o]
> Error 1
> make[3]: *** [scripts/Makefile.build:440: drivers/gpu/drm/amd/amdgpu] Error 2
> make[2]: *** [scripts/Makefile.build:440: drivers/gpu/drm] Error 2
> make[1]: *** [scripts/Makefile.build:440: drivers/gpu] Error 2
> make: *** [Makefile:962: drivers] Error 2
> 

Your version of gcc seems to warn on different things than mine.  Try removing
-Werror from the Makefile:

Patch
diff mbox

diff --git a/drivers/gpu/drm/amd/dal/Makefile
b/drivers/gpu/drm/amd/dal/Makefile
index b84a2db..2ef2128 100644
--- a/drivers/gpu/drm/amd/dal/Makefile
+++ b/drivers/gpu/drm/amd/dal/Makefile
@@ -5,8 +5,6 @@ 

 AMDDALPATH = $(RELATIVE_AMD_DAL_PATH)

-subdir-ccflags-y += -Werror
-
 subdir-ccflags-y += -I$(AMDDALPATH)/ -I$(AMDDALPATH)/include

 subdir-ccflags-y += -I$(FULL_AMD_DAL_PATH)/dc/inc/