[GIT PULL] Bitmap patches for v5.19-rc1

From: Yury Norov
Date: Fri Jun 03 2022 - 15:48:26 EST


Hi Linus,

This is a shorter version of the original pull request for 5.19:
https://lkml.org/lkml/2022/5/27/1096
with all bitmap_weight_cmp() patches excluded.

Please, pull.

Thanks,
Yury

The following changes since commit ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e:

Linux 5.18-rc2 (2022-04-10 14:21:36 -1000)

are available in the Git repository at:

git@xxxxxxxxxx:/norov/linux.git tags/bitmap-for-5.19-rc1

for you to fetch changes up to 0dfe54071d7c828a02917b595456bfde1afdddc9:

nodemask: Fix return values to be unsigned (2022-06-03 06:52:58 -0700)

----------------------------------------------------------------
Bitmap patches for 5.19-rc1

This series includes the following patchsets:
- bitmap: optimize bitmap_weight() usage (w/o bitmap_weight_cmp), from me;
- lib/bitmap.c make bitmap_print_bitmask_to_buf parseable, from Mauro
Carvalho Chehab;
- include/linux/find: Fix documentation, from Anna-Maria Behnsen;
- bitmap: fix conversion from/to fix-sized arrays, from me;
- bitmap: Fix return values to be unsigned, from Kees Cook.

It has been in linux-next for at least a week with no problems.

----------------------------------------------------------------
Anna-Maria Behnsen (1):
include/linux/find: Fix documentation

Kees Cook (2):
bitmap: Fix return values to be unsigned
nodemask: Fix return values to be unsigned

Mauro Carvalho Chehab (1):
lib/bitmap.c make bitmap_print_bitmask_to_buf parseable

Yury Norov (27):
net: dsa: don't use bitmap_weight() in b53_arl_read()
net: systemport: don't use bitmap_weight() in bcm_sysport_rule_set()
net: mellanox: fix open-coded for_each_set_bit()
iio: fix opencoded for_each_set_bit()
qed: rework qed_rdma_bmap_free()
KVM: x86: replace bitmap_weight with bitmap_empty where appropriate
octeontx2-pf: replace bitmap_weight with bitmap_empty where appropriate
qed: replace bitmap_weight with bitmap_empty in qed_roce_stop()
risc-v: replace bitmap_weight with bitmap_empty in riscv_fill_hwcap()
arch/alpha: replace cpumask_weight with cpumask_empty where appropriate
arch/ia64: replace cpumask_weight with cpumask_empty where appropriate
arch/x86: replace cpumask_weight with cpumask_empty where appropriate
drm/i915/pmu: replace cpumask_weight with cpumask_empty where appropriate
irq: mips: replace cpumask_weight with cpumask_empty where appropriate
genirq/affinity: replace cpumask_weight with cpumask_empty where appropriate
clocksource: replace cpumask_weight with cpumask_empty in clocksource.c
mm/vmstat: replace cpumask_weight with cpumask_empty where appropriate
arch/x86: replace nodes_weight with nodes_empty where appropriate
MAINTAINERS: add cpumask and nodemask files to BITMAP_API
lib/bitmap: extend comment for bitmap_(from,to)_arr32()
lib: add bitmap_{from,to}_arr64
lib/bitmap: add test for bitmap_{from,to}_arr64
KVM: s390: replace bitmap_copy with bitmap_{from,to}_arr64 where appropriate
drm/amd/pm: use bitmap_{from,to}_arr32 where appropriate
ia64: cleanup remove_siblinginfo()
KVM: x86: hyper-v: fix type of valid_bank_mask
KVM: x86: hyper-v: replace bitmap_weight() with hweight64()

MAINTAINERS | 4 +
arch/alpha/kernel/process.c | 2 +-
arch/ia64/kernel/setup.c | 2 +-
arch/ia64/kernel/smpboot.c | 4 -
arch/riscv/kernel/cpufeature.c | 7 +-
arch/s390/kvm/kvm-s390.c | 10 +-
arch/x86/kernel/cpu/resctrl/rdtgroup.c | 14 +--
arch/x86/kvm/hyperv.c | 14 +--
arch/x86/mm/amdtopology.c | 2 +-
arch/x86/mm/mmio-mod.c | 2 +-
arch/x86/mm/numa_emulation.c | 4 +-
arch/x86/platform/uv/uv_nmi.c | 2 +-
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 2 +-
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 +-
drivers/gpu/drm/i915/i915_pmu.c | 2 +-
drivers/iio/dummy/iio_simple_dummy_buffer.c | 48 ++++-----
drivers/irqchip/irq-bcm6345-l1.c | 2 +-
drivers/net/dsa/b53/b53_common.c | 6 +-
drivers/net/ethernet/broadcom/bcmsysport.c | 6 +-
.../ethernet/marvell/octeontx2/nic/otx2_flows.c | 4 +-
.../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 2 +-
drivers/net/ethernet/mellanox/mlx4/cmd.c | 23 ++--
drivers/net/ethernet/qlogic/qed/qed_rdma.c | 45 +++-----
drivers/net/ethernet/qlogic/qed/qed_roce.c | 2 +-
include/linux/bitmap.h | 56 ++++++----
include/linux/find.h | 6 +-
include/linux/nodemask.h | 38 +++----
kernel/irq/affinity.c | 2 +-
kernel/time/clocksource.c | 2 +-
lib/bitmap.c | 117 ++++++++++++++++-----
lib/nodemask.c | 4 +-
lib/test_bitmap.c | 25 +++++
mm/vmstat.c | 4 +-
tools/include/linux/bitmap.h | 17 +--
tools/lib/bitmap.c | 20 ++--
35 files changed, 279 insertions(+), 223 deletions(-)