git: 9f1c5bffe7f9 - 2022Q2 - graphics/drm-{current,devel}-kmod: Fix build on head

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 23:08:23 UTC
The branch 2022Q2 has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f1c5bffe7f9ffa38b5c281c01fe40d2df4f018b

commit 9f1c5bffe7f9ffa38b5c281c01fe40d2df4f018b
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2022-04-21 22:56:51 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2022-04-21 23:07:53 +0000

    graphics/drm-{current,devel}-kmod: Fix build on head
    
    After 8b83d7e0ee54, '-Wunused-but-set-variable' is a fatal error.
    
    (cherry picked from commit 362de1d360b8f8b7c5ed19dca6bc1b526bdbbf5e)
---
 .../files/patch-amd_amdgpu_Makefile                | 153 +++++++++++++++++++++
 .../drm-current-kmod/files/patch-i915_Makefile     |  24 ++++
 .../drm-current-kmod/files/patch-radeon_Makefile   |  56 ++++++++
 .../drm-devel-kmod/files/patch-amd_amdgpu_Makefile |  28 ++++
 4 files changed, 261 insertions(+)

diff --git a/graphics/drm-current-kmod/files/patch-amd_amdgpu_Makefile b/graphics/drm-current-kmod/files/patch-amd_amdgpu_Makefile
new file mode 100644
index 000000000000..d6b8b83c4623
--- /dev/null
+++ b/graphics/drm-current-kmod/files/patch-amd_amdgpu_Makefile
@@ -0,0 +1,153 @@
+--- amd/amdgpu/Makefile.orig	2022-02-23 13:59:52 UTC
++++ amd/amdgpu/Makefile
+@@ -597,45 +597,66 @@ CWARNFLAGS.amdgpu_atpx_handler.c=		-Wno-missing-protot
+ CWARNFLAGS.amdgpu_device.c=	-Wno-missing-prototypes
+ .endif
+ CWARNFLAGS.amdgpu_atpx_handler.c=		-Wno-missing-prototypes
++CWARNFLAGS.amdgpu_bo_list.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.amdgpu_csa.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.amdgpu_device.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.amdgpu_display.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_dma_buf.c=			-Wno-missing-prototypes
++CWARNFLAGS.amdgpu_drv.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.amdgpu_gfx.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_ioc32.c=			-Wno-missing-prototypes
+ CWARNFLAGS.amdgpu_pm.c=				-Wno-unused-const-variable
+ CWARNFLAGS.amdgpu_ras.c=			-Wno-missing-prototypes -Wno-unused-function
+ CWARNFLAGS.amdgpu_sched.c=			-Wno-missing-prototypes
+-CWARNFLAGS.amdgpu_ttm.c=			-Wno-missing-prototypes
++CWARNFLAGS.amdgpu_ttm.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_xgmi.c=			-Wno-missing-prototypes
+-CWARNFLAGS.gfx_v7_0.c=				-Wno-missing-prototypes
+-CWARNFLAGS.gfx_v8_0.c=				-Wno-missing-prototypes
++CWARNFLAGS.atombios_dp.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.atombios_encoders.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.dce_v6_0.c=				-Wno-unused-but-set-variable
++CWARNFLAGS.dce_v8_0.c=				-Wno-unused-but-set-variable
++CWARNFLAGS.gfx_v6_0.c=				-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.gfx_v7_0.c=				-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.gfx_v8_0.c=				-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.gfx_v9_0.c=				-Wno-missing-prototypes
+ CWARNFLAGS.gfx_v10_0.c=				-Wno-missing-prototypes
+ CWARNFLAGS.gmc_v6_0.c=				-Wno-unused-const-variable
++CWARNFLAGS.kv_dpm.c=				-Wno-unused-but-set-variable
+ CWARNFLAGS.mes_v10_1.c=				-Wno-unused-const-variable
+ CWARNFLAGS.mmhub_v9_4.c=			-Wno-missing-prototypes
+-CWARNFLAGS.vcn_v2_0.c=				-Wno-missing-prototypes
++CWARNFLAGS.sdma_v4_0.c=				-Wno-unused-but-set-variable
++CWARNFLAGS.vcn_v1_0.c=				-Wno-unused-but-set-variable
++CWARNFLAGS.vcn_v2_0.c=				-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.vcn_v2_5.c=				-Wno-unused-but-set-variable
+ 
+ # display/amdgpu_dm
+ CWARNFLAGS.amdgpu_dm_pp_smu.c=		-Wno-missing-prototypes -Wno-incompatible-function-pointer-types
+ CWARNFLAGS.amdgpu_dm_services.c=	-Wno-missing-prototypes
+-CWARNFLAGS.amdgpu_dm.c=			-Wno-missing-prototypes -Wno-unused-function
++CWARNFLAGS.amdgpu_dm.c=			-Wno-missing-prototypes -Wno-unused-function -Wno-unused-but-set-variable
+ 
+ # display/dc
+ CWARNFLAGS.conversion.c=		-Wno-missing-prototypes
+ CWARNFLAGS.fixpt31_32.c=		-Wno-incompatible-pointer-types
+ CWARNFLAGS.vector.c=			-Wno-missing-prototypes
+-CWARNFLAGS.bios_parser.c=		-Wno-missing-prototypes
++CWARNFLAGS.bios_parser.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.bios_parser2.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.color_gamma.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.dc_hw_sequencer.c=		-Wno-missing-prototypes
+-CWARNFLAGS.dc_link.c=			-Wno-missing-prototypes
++CWARNFLAGS.dc_link.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.dc_link_dp.c=		-Wno-missing-prototypes
+-CWARNFLAGS.dce_aux.c=			-Wno-missing-prototypes
++CWARNFLAGS.dce_abm.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.dce_aux.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.dce_clock_source.c=		-Wno-unused-const-variable
+ CWARNFLAGS.dce_dmcu.c=			-Wno-missing-prototypes
+ CWARNFLAGS.dce_i2c_hw.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dce_i2c_sw.c=		-Wno-missing-prototypes
++CWARNFLAGS.dce_link_encoder.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.dce_stream_encoder.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.dce100_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+ CWARNFLAGS.dce110_compressor.c=		-Wno-missing-prototypes
+-CWARNFLAGS.dce110_hw_sequencer.c=	-Wno-missing-prototypes
++CWARNFLAGS.dce110_hw_sequencer.c=	-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.dce110_mem_input_v.c=	-Wno-missing-prototypes
+ CWARNFLAGS.dce110_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
++CWARNFLAGS.dce110_timing_generator.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.dce112_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+ CWARNFLAGS.dce120_hw_sequencer.c=	-Wno-unused-const-variable
+ CWARNFLAGS.dce120_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+@@ -644,21 +665,25 @@ CWARNFLAGS.rv1_clk_mgr.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dce80_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+ CWARNFLAGS.rv1_clk_mgr_vbios_smu.c=	-Wno-missing-prototypes
+ CWARNFLAGS.rv1_clk_mgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.dcn10_dpp.c=			-Wno-missing-prototypes
++CWARNFLAGS.dcn10_dpp.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.dcn10_dpp_dscl.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dcn10_hw_sequencer.c=	-Wno-missing-prototypes
++CWARNFLAGS.dcn10_link_encoder.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.dcn10_opp.c=			-Wno-missing-prototypes
+ CWARNFLAGS.dcn10_optc.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dcn10_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+-CWARNFLAGS.dcn20_dpp.c=			-Wno-missing-prototypes
+-CWARNFLAGS.dcn20_dwb_scl.c=		-Wno-missing-prototypes
++CWARNFLAGS.dcn10_stream_encoder.c=	-Wno-unused-but-set-variable
++CWARNFLAGS.dcn20_dpp.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.dcn20_dwb_scl.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.dcn20_hwseq.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dcn20_hubp.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dcn20_mpc.c=			-Wno-missing-prototypes
+ CWARNFLAGS.dcn20_optc.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dcn20_resource.c=		-Wno-missing-prototypes -Wno-initializer-overrides -Wno-unused-variable
+-CWARNFLAGS.dcn20_clk_mgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.rc_calc.c=			-Wno-missing-prototypes
++CWARNFLAGS.dcn20_clk_mgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.freesync.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.rc_calc.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.hw_ddc.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.hw_factory.c=		-Wno-missing-prototypes -Wno-unused-function
+ CWARNFLAGS.hw_factory_diag.c=		-Wno-missing-prototypes
+ CWARNFLAGS.hw_gpio.c=			-Wno-unused-function
+@@ -668,21 +693,28 @@ CWARNFLAGS.dc_helper.c=			-Wno-missing-prototypes
+ CWARNFLAGS.irq_service_dcn20.c=		-Wno-missing-prototypes
+ CWARNFLAGS.power_helpers.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dc_helper.c=			-Wno-missing-prototypes
+-CWARNFLAGS.dcn_calcs.c+=		-Wno-missing-prototypes -Wno-unused-variable
++CWARNFLAGS.dce_calcs.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.dcn_calcs.c+=		-Wno-missing-prototypes -Wno-unused-variable -Wno-unused-but-set-variable
+ 
+ # powerplay/*
+ CWARNFLAGS.amdgpu_smu.c=		-Wno-missing-prototypes
+-CWARNFLAGS.ci_smumgr.c=			-Wno-missing-prototypes
++CWARNFLAGS.arcturus_ppt.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.ci_smumgr.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.fiji_smumgr.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.hardwaremanager.c=		-Wno-missing-prototypes
+-CWARNFLAGS.iceland_smumgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.polaris10_smumgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.smu7_hwmgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.smu8_hwmgr.c=		-Wno-missing-prototypes
++CWARNFLAGS.iceland_smumgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.navi10_ppt.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.polaris10_smumgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.pp_psm.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.ppatomctrl.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.smu7_hwmgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.smu8_hwmgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.smu8_smumgr.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.smu9_smumgr.c=		-Wno-missing-prototypes
+ CWARNFLAGS.smu10_hwmgr.c=		-Wno-missing-prototypes -Wno-initializer-overrides
+ CWARNFLAGS.smu_v11_0.c=			-Wno-missing-prototypes
+-CWARNFLAGS.tonga_smumgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.vega10_hwmgr.c=		-Wno-missing-prototypes
++CWARNFLAGS.tonga_smumgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.vega10_hwmgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.vega10_powertune.c=		-Wno-unused-const-variable
+ CWARNFLAGS.vega10_processpptables.c=	-Wno-missing-prototypes
+ CWARNFLAGS.vega10_thermal.c=		-Wno-missing-prototypes
+@@ -690,4 +722,5 @@ CWARNFLAGS.vega20_hwmgr.c=		-Wno-missing-prototypes
+ CWARNFLAGS.vega12_processpptables.c=	-Wno-missing-prototypes
+ CWARNFLAGS.vega12_thermal.c=		-Wno-missing-prototypes
+ CWARNFLAGS.vega20_hwmgr.c=		-Wno-missing-prototypes
+-CWARNFLAGS.vegam_smumgr.c=		-Wno-missing-prototypes
++CWARNFLAGS.vega20_ppt.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.vegam_smumgr.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
diff --git a/graphics/drm-current-kmod/files/patch-i915_Makefile b/graphics/drm-current-kmod/files/patch-i915_Makefile
new file mode 100644
index 000000000000..e5aef048c6e9
--- /dev/null
+++ b/graphics/drm-current-kmod/files/patch-i915_Makefile
@@ -0,0 +1,24 @@
+--- i915/Makefile.orig	2022-02-23 13:59:52 UTC
++++ i915/Makefile
+@@ -235,12 +235,19 @@ CWARNFLAGS.intel_audio.c=	-Wno-unused-function
+ 
+ CWARNFLAGS.intel_acpi.c=	-Wno-incompatible-pointer-types
+ CWARNFLAGS.intel_audio.c=	-Wno-unused-function
++CWARNFLAGS.intel_display.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.intel_dp.c=		-Wno-unused-variable
+ CWARNFLAGS.intel_dpll_mgr.c=	-Wno-compare-distinct-pointer-types
+ CWARNFLAGS.intel_fbdev.c=	-Wno-initializer-overrides
+ CWARNFLAGS.intel_freebsd.c=	-Wno-unused-function
++CWARNFLAGS.intel_hdmi.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.intel_pm.c=		-Wno-incompatible-pointer-types-discards-qualifiers
+-CWARNFLAGS.i915_pci.c=		-Wno-initializer-overrides
++CWARNFLAGS.intel_reset.c=	-Wno-unused-but-set-variable
+ CWARNFLAGS.i915_active.c=	-Wno-unused-function
++CWARNFLAGS.i915_drv.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.i915_gem_mman.c=	-Wno-unused-but-set-variable
++CWARNFLAGS.i915_gem_shmem.c=	-Wno-unused-but-set-variable
++CWARNFLAGS.i915_pci.c=		-Wno-initializer-overrides
+ CWARNFLAGS.i915_sw_fence.c=	-Wno-unused-function
+-CWARNFLAGS.i915_vma.c=		-Wno-unused-function
++CWARNFLAGS.i915_vma.c=		-Wno-unused-function -Wno-unused-but-set-variable
++CWARNFLAGS.vlv_dsi.c=		-Wno-unused-but-set-variable
diff --git a/graphics/drm-current-kmod/files/patch-radeon_Makefile b/graphics/drm-current-kmod/files/patch-radeon_Makefile
new file mode 100644
index 000000000000..ac744af1f235
--- /dev/null
+++ b/graphics/drm-current-kmod/files/patch-radeon_Makefile
@@ -0,0 +1,56 @@
+--- radeon/Makefile.orig	2022-02-23 13:59:52 UTC
++++ radeon/Makefile
+@@ -149,36 +149,43 @@ CWARNFLAGS+=			-Wno-pointer-arith ${CWARNFLAGS.${.IMPS
+ CWARNFLAGS+= -Wno-expansion-to-defined
+ CWARNFLAGS+=			-Wno-pointer-arith ${CWARNFLAGS.${.IMPSRC:T}}
+ 
++CWARNFLAGS.atombios_dp.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.atombios_encoders.c=		-Wno-missing-prototypes
+ CWARNFLAGS.atombios_i2c.c=		-Wno-missing-prototypes
+-CWARNFLAGS.ci_dpm.c=			-Wno-unused-const-variable
+-CWARNFLAGS.cik.c=			-Wno-missing-prototypes -Wno-cast-qual
++CWARNFLAGS.ci_dpm.c=			-Wno-unused-const-variable -Wno-unused-but-set-variable
++CWARNFLAGS.cik.c=			-Wno-missing-prototypes -Wno-cast-qual -Wno-unused-but-set-variable
+ CWARNFLAGS.cik_sdma.c=			-Wno-missing-prototypes
+ CWARNFLAGS.dce3_1_afmt.c=		-Wno-missing-prototypes
+ CWARNFLAGS.dce6_afmt.c=			-Wno-missing-prototypes
+-CWARNFLAGS.evergreen.c=			-Wno-missing-prototypes -Wno-cast-qual
++CWARNFLAGS.evergreen.c=			-Wno-missing-prototypes -Wno-cast-qual -Wno-unused-but-set-variable
+ CWARNFLAGS.evergreen_hdmi.c=		-Wno-missing-prototypes
+ CWARNFLAGS.kv_dpm.c=			-Wno-unused-const-variable
+-CWARNFLAGS.ni.c=			-Wno-missing-prototypes -Wno-cast-qual
++CWARNFLAGS.ni.c=			-Wno-missing-prototypes -Wno-cast-qual -Wno-unused-but-set-variable
+ CWARNFLAGS.ni_dpm.c=			-Wno-missing-prototypes
+-CWARNFLAGS.r600.c=			-Wno-missing-prototypes -Wno-cast-qual
+-CWARNFLAGS.r600_cs.c=			-Wno-missing-prototypes
++CWARNFLAGS.r600.c=			-Wno-missing-prototypes -Wno-cast-qual -Wno-unused-but-set-variable
++CWARNFLAGS.r600_cs.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.r600_hdmi.c=			-Wno-missing-prototypes
+-CWARNFLAGS.radeon_atombios.c=		-Wno-missing-prototypes
++CWARNFLAGS.radeon_atombios.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.radeon_combios.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.radeon_connectors.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.radeon_device.c=		-Wno-missing-prototypes -Wno-cast-qual
++CWARNFLAGS.radeon_display.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.radeon_dp_mst.c=		-Wno-unused-but-set-variable
++CWARNFLAGS.radeon_drv.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.radeon_gem.c=		-Wno-missing-prototypes
+ CWARNFLAGS.radeon_irq_kms.c=		-Wno-missing-prototypes
+ CWARNFLAGS.radeon_kms.c=		-Wno-missing-prototypes
+ CWARNFLAGS.radeon_legacy_encoders.c=	-Wno-missing-prototypes
++CWARNFLAGS.radeon_legacy_tv.c=		-Wno-unused-but-set-variable
+ CWARNFLAGS.radeon_pm.c=			-Wno-missing-prototypes -Wno-unused-function
+ CWARNFLAGS.radeon_prime.c=		-Wno-missing-prototypes
+ CWARNFLAGS.radeon_ring.c=		-Wno-cast-qual
+ CWARNFLAGS.radeon_ttm.c=		-Wno-missing-prototypes
+ CWARNFLAGS.radeon_uvd.c=		-Wno-cast-qual
+ CWARNFLAGS.rv770.c=			-Wno-missing-prototypes
+-CWARNFLAGS.rv770_dpm.c=			-Wno-missing-prototypes
+-CWARNFLAGS.si.c=			-Wno-missing-prototypes -Wno-cast-qual
+-CWARNFLAGS.si_dpm.c=			-Wno-missing-prototypes -Wno-unused-const-variable
++CWARNFLAGS.rv770_dpm.c=			-Wno-missing-prototypes -Wno-unused-but-set-variable
++CWARNFLAGS.si.c=			-Wno-missing-prototypes -Wno-cast-qual -Wno-unused-but-set-variable
++CWARNFLAGS.si_dpm.c=			-Wno-missing-prototypes -Wno-unused-const-variable -Wno-unused-but-set-variable
+ CWARNFLAGS.sumo_dpm.c=			-Wno-missing-prototypes
+ CWARNFLAGS.trinity_dpm.c=		-Wno-unused-const-variable
+ CWARNFLAGS.vce_v1_0.c=			-Wno-missing-prototypes -Wno-cast-qual
diff --git a/graphics/drm-devel-kmod/files/patch-amd_amdgpu_Makefile b/graphics/drm-devel-kmod/files/patch-amd_amdgpu_Makefile
new file mode 100644
index 000000000000..edc0a9f52062
--- /dev/null
+++ b/graphics/drm-devel-kmod/files/patch-amd_amdgpu_Makefile
@@ -0,0 +1,28 @@
+--- amd/amdgpu/Makefile.orig	2022-02-23 12:42:58
++++ amd/amdgpu/Makefile
+@@ -651,10 +651,12 @@ CWARNFLAGS.amdgpu_bo_list.c=			-Wno-unused-but-set-var
+ .endif
+ CWARNFLAGS.amdgpu_atpx_handler.c=		-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_bo_list.c=			-Wno-unused-but-set-variable
++CWARNFLAGS.amdgpu_cs.c=				-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_csa.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_dma_buf.c=			-Wno-missing-prototypes
+ CWARNFLAGS.amdgpu_device.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_ioc32.c=			-Wno-missing-prototypes
++CWARNFLAGS.amdgpu_job.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.amdgpu_pm.c=				-Wno-unused-const-variable
+ CWARNFLAGS.amdgpu_psp.c=			-Wno-missing-prototypes
+ CWARNFLAGS.amdgpu_ras.c=			-Wno-missing-prototypes -Wno-unused-function
+@@ -664,10 +666,11 @@ CWARNFLAGS.dce_v8_0.c=				-Wno-unused-but-set-variable
+ CWARNFLAGS.atombios_encoders.c=			-Wno-unused-but-set-variable
+ CWARNFLAGS.dce_v6_0.c=				-Wno-unused-but-set-variable
+ CWARNFLAGS.dce_v8_0.c=				-Wno-unused-but-set-variable
++CWARNFLAGS.dmub_psr.c=				-Wno-unused-but-set-variable
+ CWARNFLAGS.gfx_v7_0.c=				-Wno-missing-prototypes
+ CWARNFLAGS.gfx_v8_0.c=				-Wno-missing-prototypes
+ CWARNFLAGS.gfx_v9_0.c=				-Wno-missing-prototypes
+-CWARNFLAGS.gfx_v10_0.c=				-Wno-missing-prototypes
++CWARNFLAGS.gfx_v10_0.c=				-Wno-missing-prototypes -Wno-unused-but-set-variable
+ CWARNFLAGS.gmc_v6_0.c=				-Wno-unused-const-variable
+ CWARNFLAGS.jpeg_v1_0.c=				-Wno-missing-prototypes
+ CWARNFLAGS.jpeg_v2_0.c=				-Wno-missing-prototypes