cpumask add highest_possible_node_id fix
Subsystems (2)
PATCH 1/1 cpumask add highest_possible_node_id fix
Fix typo in lib/cpumask.c - looks like a cut+paste forgot to change a cpu macro call to a node macro call. This typo caused the following build warnings:
lib/cpumask.c: In function `highest_possible_node_id':lib/cpumask.c:56: warning: passing arg 1 of __first_cpu' from incompatible pointer type lib/cpumask.c:56: warning: passing arg 2 of __next_cpu' from incompatible pointer type
Signed-off-by Paul Jackson <[email protected]>
---
lib/cpumask.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
lib/cpumask.c +1 -1
@@ -53,7 +53,7 @@ int highest_possible_node_id(void)unsigned int node;unsigned int highest =0 ; -for_each_cpu_mask (node, node_possible_map) +for_each_node_mask (node, node_possible_map) highest = node;return highest; }
Signature · 3 lines
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.925.600.0401