[Patch] percpu_alloc: correct function prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
---

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux