From de02b8fb388657d51ed9ce045b4d38eadcc17421 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 11 Oct 2024 02:02:19 +0000 Subject: 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(-) (limited to 'sys') 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 -- cgit v1.2.3