fix cpulist_parse definition to match bitmap_parselist and kernel

Nobody used cpulist_parse before, so nobody noticed that the parameters
for cpulist_parse and bitmap_parselist did not match the parameters
actually used by bitmap_parselist and related functions.

Signed-off-by: Rik van Riel <riel@redhat.com>
This commit is contained in:
Rik van Riel 2015-03-12 17:47:00 -04:00
parent 976e741c59
commit a1646032c6

View file

@ -281,10 +281,10 @@ static inline int __cpulist_scnprintf(char *buf, int len,
return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
}
#define cpulist_parse(buf, dst) __cpulist_parse((buf), &(dst), NR_CPUS)
static inline int __cpulist_parse(const char *buf, cpumask_t *dstp, int nbits)
#define cpulist_parse(buf, len, dst) __cpulist_parse((buf), (len), &(dst), NR_CPUS)
static inline int __cpulist_parse(const char *buf, int len, cpumask_t *dstp, int nbits)
{
return bitmap_parselist(buf, dstp->bits, nbits);
return bitmap_parselist(buf, len, dstp->bits, nbits);
}
#define cpu_remap(oldbit, old, new) \