Skip to content

Commit ef126c0

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amdgpu: Fix get each xcp macro
Fix get each xcp macro to loop over each partition correctly Fixes: 4bdca20 ("drm/amdgpu: Add utility functions for xcp") Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 06c9aeb commit ef126c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from)
180180

181181
#define for_each_xcp(xcp_mgr, xcp, i) \
182182
for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \
183-
xcp = amdgpu_get_next_xcp(xcp_mgr, &i))
183+
++i, xcp = amdgpu_get_next_xcp(xcp_mgr, &i))
184184

185185
#endif

0 commit comments

Comments
 (0)