✗ CI.checkpatch: warning for ice: use better bitmap API

Patchwork
2026-03-02T01:17:48Z

== Series Details ==

Series: ice: use better bitmap API
URL : https://patchwork.freedesktop.org/series/162389/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
1f57ba1afceae32108bd24770069f764d940a0e4
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit cbe5b275aeb701746bd7dc64be4b1b0b58f60e76
Author: Yury Norov <ynorov@nvidia.com>
Date: Sun Mar 1 20:11:58 2026 -0500

drm/xe: switch xe_pagefault_queue_init() to using bitmap_weighted_or()

The function calls bitmap_or() immediately followed by bitmap_weight().
Switch to using the dedicated bitmap_weighted_or() and save one bitmap
traverse.

Signed-off-by: Yury Norov <ynorov@nvidia.com>
+ /mt/dim checkpatch 1ad945dbcb06504e1d9796cac1588c31b4ee62e9 drm-intel
2520ef85b854 bitmap: introduce bitmap_weighted_xor()
-:28: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#28: FILE: include/linux/bitmap.h:173:
+unsigned int __bitmap_weighted_xor(unsigned long *dst, const unsigned long *bitmap1,
+ const unsigned long *bitmap2, unsigned int nbits);

-:38: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#38: FILE: include/linux/bitmap.h:360:
+unsigned int bitmap_weighted_xor(unsigned long *dst, const unsigned long *src1,
+ const unsigned long *src2, unsigned int nbits)

-:60: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#60: FILE: lib/bitmap.c:365:
+unsigned int __bitmap_weighted_xor(unsigned long *dst, const unsigned long *bitmap1,
+ const unsigned long *bitmap2, unsigned int bits)

total: 0 errors, 0 warnings, 3 checks, 46 lines checked
288c544e7dd9 ice: use bitmap_weighted_xor() in ice_find_free_recp_res_idx()
0cc07095c3b2 ice: use bitmap_empty() in ice_vf_has_no_qs_ena
cbe5b275aeb7 drm/xe: switch xe_pagefault_queue_init() to using bitmap_weighted_or()
-:23: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#23: FILE: drivers/gpu/drm/xe/xe_pagefault.c:298:
+ num_dss = bitmap_weighted_or(all_dss, gt->fuse_topo.g_dss_mask,
gt->fuse_topo.c_dss_mask, XE_MAX_DSS_FUSE_BITS);

total: 0 errors, 0 warnings, 1 checks, 11 lines checked