diff options
| author | Yury Norov <[email protected]> | 2022-07-01 12:54:25 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-07-15 13:35:54 +0000 |
| commit | 4dea97f8636d0514befc9fc5cf342b351b7d0e20 (patch) | |
| tree | 229c6eb22cd7c99bbe8d942a8f1b84465199a2fa /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | lib/bitmap: change return types to bool where appropriate (diff) | |
| download | kernel-4dea97f8636d0514befc9fc5cf342b351b7d0e20.tar.gz kernel-4dea97f8636d0514befc9fc5cf342b351b7d0e20.zip | |
lib/bitmap: change type of bitmap_weight to unsigned long
bitmap_weight() doesn't return negative values, so change it's type
to unsigned long. It may help compiler to generate better code and
catch bugs.
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c index 16699158e00d..1098506ba1aa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c @@ -195,7 +195,7 @@ void amdgpu_gfx_compute_queue_acquire(struct amdgpu_device *adev) set_bit(i, adev->gfx.mec.queue_bitmap); } - dev_dbg(adev->dev, "mec queue bitmap weight=%d\n", bitmap_weight(adev->gfx.mec.queue_bitmap, AMDGPU_MAX_COMPUTE_QUEUES)); + dev_dbg(adev->dev, "mec queue bitmap weight=%ld\n", bitmap_weight(adev->gfx.mec.queue_bitmap, AMDGPU_MAX_COMPUTE_QUEUES)); } void amdgpu_gfx_graphics_queue_acquire(struct amdgpu_device *adev) |
