From nobody Thu Apr 21 23:08:23 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B0775199E939; Thu, 21 Apr 2022 23:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KktWC4fQbz4fRy; Thu, 21 Apr 2022 23:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650582503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fpb2W672AxvGjE3X1QFOnY65O8j48kwkVHTXjhIZupI=; b=kVIyG7buBdiBDwZm58ok9bzpfSeG8STbIIsI7FmHF4T3nElkfADoT4wLieE6PpQ05QJ38+ InOpes3lkmvAHOKvuHmIPTQwTJqT+4pfoRZRnrt+UkeMVHV/H8LrHoaMx/ORyJYFMxDzq6 bC7+R6cdaG0uBsnsEBG7KGzngurpl8I9bDvtFMyVEGQ8zsAfLK6hSWj6EdB1B6NK6iRzhX iMVJIC0bm/8sanm6SEFnHjb1xBdm7iQDMg6ZbT1wrnDXFe8To/ahVnfaoG06ghBOJr6QEL PFml7IOh/ZXka83VzI9mXcumYO4iPQGCPhVxqiE28eGTBQCjdsXTaEATTDt5Jg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7FA2212016; Thu, 21 Apr 2022 23:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LN8NWi062011; Thu, 21 Apr 2022 23:08:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LN8Nek062010; Thu, 21 Apr 2022 23:08:23 GMT (envelope-from git) Date: Thu, 21 Apr 2022 23:08:23 GMT Message-Id: <202204212308.23LN8Nek062010@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Jung-uk Kim Subject: git: 9f1c5bffe7f9 - 2022Q2 - graphics/drm-{current,devel}-kmod: Fix build on head List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jkim X-Git-Repository: ports X-Git-Refname: refs/heads/2022Q2 X-Git-Reftype: branch X-Git-Commit: 9f1c5bffe7f9ffa38b5c281c01fe40d2df4f018b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650582503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fpb2W672AxvGjE3X1QFOnY65O8j48kwkVHTXjhIZupI=; b=y0JX/7rpMhtAn05/58aSz8Y0EP3AuYZ2hYb1EQdSFf4nV/qZDtP+Bs//wPLeoAI46LiG/H VVPNtFu6dccj/WIPfKVsNu65NAq+NFhWuj4cFtsePLLJGWLDQiSY6pE3Avvl4vYZgrAM97 O0VT0NAA1v1VLrRI8z5wiklGv5HQNjQHMMf82AzMY1TC8Q69PaV0ysoliOSUookZ/8PjX8 /XFzTQXc6lag8uA2yQ8Ic8o7dBYg3Xy715rvNYAXEj2xZS0kYgyZm/AMtEMIFsU9pSnGk8 xovPI8B1+84EA7KddhOkhG3ZGvWDKoqO3rtEsJyscx4qR2NUHLlINjs2nrhFNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650582503; a=rsa-sha256; cv=none; b=KqMWb9MxdrG2NVmvE9O2t+RNnZRLJBC+6zZbqbiPOi0Dr33joAXTUj0JvYZUPd0cswPjaz rmJaC8a29z2bSEkG1oH81l90QYAo8KALnGfzpgjSpPib3D+LkGnNdBo3q24KchKhfWGGvs UXaQSZpHqhAIv39nJ7LxLdWqoHoH2bwPUSQAm18LTDNKtefyiNxMWbQe8skMq17vEvLRSy qPY25GVAXXfsixbva/EUH9XFa3+g+hXm2CsBkO5uxO+/NXo6W05YmCqOVdZyH8pNqA0Lsu M31bvJRHbvZx6NbrJixkYa110ia1MEiyMI7wX5WgfAsgOxhGRSLRFBKxD2emig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch 2022Q2 has been updated by jkim: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f1c5bffe7f9ffa38b5c281c01fe40d2df4f018b commit 9f1c5bffe7f9ffa38b5c281c01fe40d2df4f018b Author: Jung-uk Kim AuthorDate: 2022-04-21 22:56:51 +0000 Commit: Jung-uk Kim 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