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

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