From 1086cb976421c4aeddef844dab1d30f9909406be Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 11 Oct 2024 02:02:18 +0000 Subject: [PATCH] drm/amdgpu: Fix get each xcp macro From Asad Kamal 7879ad0aa996dc0c66950a6416e0ae227288f362 in linux-6.6.y/6.6.55 ef126c06a98bde1a41303970eb0fc0ac33c3cc02 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h b/sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h index f466e2642e1..d8fd0a7d25b 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h @@ -179,6 +179,6 @@ amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from) #define for_each_xcp(xcp_mgr, xcp, i) \ for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \ - xcp = amdgpu_get_next_xcp(xcp_mgr, &i)) + ++i, xcp = amdgpu_get_next_xcp(xcp_mgr, &i)) #endif -- 2.20.1