[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1154631088.2963.9.camel@dyn-9-152-230-71.boeblingen.de.ibm.com>
Date: Thu, 03 Aug 2006 20:51:28 +0200
From: Martin Peschke <mp3@...ibm.com>
To: Andrew Morton <akpm@...l.org>
Cc: Paul Jackson <pj@....com>, linux-kernel@...r.kernel.org
Subject: [Patch] percpu_alloc: correct function prototypes
This patch corrects a couple of inconsistencies regarding percpu_*()
function prototypes (type and name of parameters), which didn't cause
any harm, though.
Signed-off-by: Martin Peschke <mp3@...ibm.com>
---
percpu.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -ur a/include/linux/percpu.h b/include/linux/percpu.h
--- a/include/linux/percpu.h 29 Jul 2006 11:38:25 -0000 1.10
+++ b/include/linux/percpu.h 29 Jul 2006 13:13:09 -0000 1.11
@@ -41,7 +41,7 @@
extern int percpu_populate_mask(void *__pdata, size_t size, gfp_t gfp,
cpumask_t mask);
extern void percpu_depopulate_mask(void *__pdata, cpumask_t mask);
-extern void *percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t map);
+extern void *percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t mask);
extern void percpu_free(void *__pdata);
#else /* CONFIG_SMP */
@@ -63,12 +63,12 @@
}
static inline int percpu_populate_mask(void *__pdata, size_t size, gfp_t gfp,
- int cpu)
+ cpumask_t mask)
{
return 0;
}
-static inline void *percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t map)
+static inline void *percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t mask)
{
return kzalloc(size, gfp);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists