Blame SOURCES/irqbalance-1.0.8-fix-cpulist_parse-definition-to-match-bitmap_parseli.patch

a69bc0
From a1646032c65858c33904fa3c8135933446f4bc83 Mon Sep 17 00:00:00 2001
a69bc0
From: Rik van Riel <riel@redhat.com>
a69bc0
Date: Thu, 12 Mar 2015 17:47:00 -0400
a69bc0
Subject: [PATCH 2/3] fix cpulist_parse definition to match bitmap_parselist
a69bc0
 and kernel
a69bc0
a69bc0
Nobody used cpulist_parse before, so nobody noticed that the parameters
a69bc0
for cpulist_parse and bitmap_parselist did not match the parameters
a69bc0
actually used by bitmap_parselist and related functions.
a69bc0
a69bc0
Signed-off-by: Rik van Riel <riel@redhat.com>
a69bc0
---
a69bc0
 cpumask.h | 6 +++---
a69bc0
 1 file changed, 3 insertions(+), 3 deletions(-)
a69bc0
a69bc0
diff --git a/cpumask.h b/cpumask.h
a69bc0
index 001dda3..0774a88 100644
a69bc0
--- a/cpumask.h
a69bc0
+++ b/cpumask.h
a69bc0
@@ -281,10 +281,10 @@ static inline int __cpulist_scnprintf(char *buf, int len,
a69bc0
 	return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
a69bc0
 }
a69bc0
 
a69bc0
-#define cpulist_parse(buf, dst) __cpulist_parse((buf), &(dst), NR_CPUS)
a69bc0
-static inline int __cpulist_parse(const char *buf, cpumask_t *dstp, int nbits)
a69bc0
+#define cpulist_parse(buf, len, dst) __cpulist_parse((buf), (len), &(dst), NR_CPUS)
a69bc0
+static inline int __cpulist_parse(const char *buf, int len, cpumask_t *dstp, int nbits)
a69bc0
 {
a69bc0
-	return bitmap_parselist(buf, dstp->bits, nbits);
a69bc0
+	return bitmap_parselist(buf, len, dstp->bits, nbits);
a69bc0
 }
a69bc0
 
a69bc0
 #define cpu_remap(oldbit, old, new) \
a69bc0
-- 
a69bc0
2.1.0
a69bc0