nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 1.2 kB view raw
1From b8b4a6bcfe35ba9539a120cfd16573123ddd9241 Mon Sep 17 00:00:00 2001 2From: "Sv. Lockal" <lockalsash@gmail.com> 3Date: Mon, 15 Dec 2025 03:46:35 +0800 4Subject: [PATCH] Fix compilation with libdrm-2.4.130 5 6Fix error: redefinition of 'struct drm_color_ctm_3x4'. 7 8drm_color_ctm_3x4 structure is now defined in https://github.com/torvalds/linux/commit/e5719e7f19009d4fbedf685fc22eec9cd8de154f#diff-4c51fb416ec7cc69566cd7b795ee57eb070aa1006ad65d6962081f039ffb2718 9 10As this structure is unused and not a part of amdsmi public interface, 11it is safe to remove it. 12--- 13 include/amd_smi/impl/amdgpu_drm.h | 9 --------- 14 1 file changed, 9 deletions(-) 15 16diff --git a/include/amd_smi/impl/amdgpu_drm.h b/include/amd_smi/impl/amdgpu_drm.h 17index b56a5ac4b..0e483d13b 100644 18--- a/include/amd_smi/impl/amdgpu_drm.h 19+++ b/include/amd_smi/impl/amdgpu_drm.h 20@@ -1625,15 +1625,6 @@ struct drm_amdgpu_info_uq_metadata { 21 #define AMDGPU_FAMILY_GC_11_5_0 150 /* GC 11.5.0 */ 22 #define AMDGPU_FAMILY_GC_12_0_0 152 /* GC 12.0.0 */ 23 24-/* FIXME wrong namespace! */ 25-struct drm_color_ctm_3x4 { 26- /* 27- * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude 28- * (not two's complement!) format. 29- */ 30- __u64 matrix[12]; 31-}; 32- 33 #if defined(__cplusplus) 34 } 35 #endif