]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit682123803aea72e040700dfd4d898d6429105b1c
tree229c6eb22cd7c99bbe8d942a8f1b84465199a2fa
parent7e7f6ebeaa062ebe4629e630efeb571f9931d367
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