lib/bitmap: change type of bitmap_weight to unsigned long
authorYury Norov <yury.norov@gmail.com>
Fri, 1 Jul 2022 12:54:25 +0000 (05:54 -0700)
committerYury Norov <yury.norov@gmail.com>
Fri, 15 Jul 2022 13:35:54 +0000 (06:35 -0700)
commit4dea97f8636d0514befc9fc5cf342b351b7d0e20
tree229c6eb22cd7c99bbe8d942a8f1b84465199a2fa
parente2863a78593d638d3924a6f67900c4820034f349
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 <yury.norov@gmail.com>
12 files changed:
drivers/dma/ti/k3-udma.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
drivers/iommu/intel/iommu.c
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/wireless/ath/ath9k/htc_drv_debug.c
drivers/net/wireless/ath/carl9170/debug.c
include/linux/bitmap.h
lib/bitmap.c
tools/include/linux/bitmap.h
tools/lib/bitmap.c