Skip to contentSkip to conversation

cpumask: Fix typo nr_cpumask_size --> nr_cpumask_bits

PATCH In review Andy Shevchenko 2 participants 3 messages Mar 6, 2023 Bitmap API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpumask: Fix typo nr_cpumask_size --> nr_cpumask_bits

I think the never used nr_cpumask_size is just a typo, hence use existing redefinition that's called nr_cpumask_bits.

---
 include/linux/cpumask.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cpumask.h +1 -1
index 8fbe76607965..ce8eb7ef2107 100644
@@ -66,7 +66,7 @@ static inline void set_nr_cpu_ids(unsigned int nr)
  *
  * Finally, some operations just want the exact limit, either because
  * they set bits or just don't have any faster fixed-sized versions. We
- * call this just 'nr_cpumask_size'.
+ * call this just 'nr_cpumask_bits'.
  *
  * Note that these optional constants are always guaranteed to be at
  * least as big as 'nr_cpu_ids' itself is, and all our cpumask
Signature · 1 line
2.39.1
#1 lore raw
Quoted 2 lines · Andy Shevchenko

I think the never used nr_cpumask_size is just a typo, hence use existing redefinition that's called nr_cpumask_bits.

In another thread we still mention this. Interesting... what did I miss?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 3 lines · Andy Shevchenko

In another thread we still mention this. Interesting... what did I miss?

You didn't miss anything, your typo fix is correct, and the same typo just exists in that other thread too. For all the same reasons for the original typo (possibly together with some cut-and-paste from said comment).

Linus