Permalink
Browse files

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>
  • Loading branch information...
rikvanriel committed Mar 12, 2015
1 parent 976e741 commit a1646032c65858c33904fa3c8135933446f4bc83
Showing with 3 additions and 3 deletions.
  1. +3 −3 cpumask.h
@@ -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) \

0 comments on commit a164603

Please sign in to comment.