diff --git a/cpumf/lshwc.c b/cpumf/lshwc.c index c7755123..13f63c4d 100644 --- a/cpumf/lshwc.c +++ b/cpumf/lshwc.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -292,8 +293,8 @@ static void parse_cpulist(char *parm, struct s390_hwctr_start *start) /* Convert the CPU list to a bitmask for kernel cpumask_t */ for (i = 0, no_b = 0; i < max_possible_cpus; ++i) { if (check[i].cpu_req) { - no_a = i % __BITS_PER_LONG; - no_b = i / __BITS_PER_LONG; + no_a = i % LONG_BIT; + no_b = i / LONG_BIT; words[no_b] |= 1ULL << no_a; } }