[Patch] percpu_alloc: correct function prototypes

From: Martin Peschke
Date: Thu Aug 03 2006 - 14:49:32 EST


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@xxxxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/