cpumask: repair cpumask_check()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | cpumask: fix checking valid cpu rangeinclude/ | +8 | 4 replies | |
| 2/7 | net: fix cpu_max_bits_warn() usage in netif_attrmask_next{,_and}include/ | +4 | 2 replies | |
| 3/7 | cpumask: switch for_each_cpu{,_not} to use for_each_bit()include/ include/ | +8 | 0 replies | |
| 4/7 | lib/find_bit: add find_next{,_and}_bit_wrapinclude/ lib/ | +49 | 0 replies | |
| 5/7 | lib/bitmap: introduce for_each_set_bit_wrap() macroinclude/ include/ | +41 | 0 replies | |
| 6/7 | lib/find: optimize for_each() macrosinclude/ | +25 | 0 replies | |
| 7/7 | lib/bitmap: add tests for for_each() loopslib/ | +243 | 0 replies |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski |
|---|---|
| 1/7 | |
| 2/7 | A-b |
| 3/7 | |
| 4/7 | |
| 5/7 | |
| 6/7 | |
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] cpumask: repair cpumask_check()
After switching cpumask to use nr_cpu_ids in [1], cpumask_check() started generating many false-positive warnings. There are some more issues with the cpumask_check() that brake it.
This series fixes cpumask_check() mess and addresses most of the false-positive warnings observed on boot of x86_64 and arm64.
[1] https://lore.kernel.org/lkml/[email protected]/T/
Yury Norov (7):
cpumask: fix checking valid cpu range
net: fix cpu_max_bits_warn() usage in netif_attrmask_next{,_and}
cpumask: switch for_each_cpu{,_not} to use for_each_bit() lib/find_bit: add find_next{,_and}_bit_wrap lib/bitmap: introduce for_each_set_bit_wrap() macro lib/find: optimize for_each() macros
lib/bitmap: add tests for for_each() iterators
include/linux/cpumask.h | 37 ++---- include/linux/find.h | 140 +++++++++++++++++----- include/linux/netdevice.h | 10 +- lib/cpumask.c | 12 +- lib/test_bitmap.c | 244 +++++++++++++++++++++++++++++++++++++- 5 files changed, 375 insertions(+), 68 deletions(-)
Signature · 1 line
2.34.1