diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:02:19 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:02:19 +0000 |
commit | de02b8fb388657d51ed9ce045b4d38eadcc17421 (patch) | |
tree | d0a51f84d7cf6d105cab32d393f1f61aba7c377d /sys | |
parent | 11ed6d15b41181ec11eefbeb10b5894bf0b43276 (diff) |
drm/amdgpu: Fix get each xcp macro
From Asad Kamal
7879ad0aa996dc0c66950a6416e0ae227288f362 in linux-6.6.y/6.6.55
ef126c06a98bde1a41303970eb0fc0ac33c3cc02 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_xcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |