[mmotm] init_call_single_data makes int

From: KOSAKI Motohiro
Date: Mon Jul 14 2008 - 07:26:38 EST


Patch title: full-conversion-to-early_initcall-interface-remove-old-interface-fix-fix-fix.patch
Against: mmotm Jul 14
Applies after: full-conversion-to-early_initcall-interface-remove-old-interface-fix-fix.patch


Now, init_call_single_data is early init function.
then, its return type should be int.

kernel/smp.c:47: warning: initialization from incompatible pointer type


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx>
CC: Eduard - Gabriel Munteanu <eduard.munteanu@xxxxxxxxxxx>
Cc: Tom Zanussi <tzanussi@xxxxxxxxx>
Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>

---
kernel/smp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Index: b/kernel/smp.c
===================================================================
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -33,7 +33,7 @@ struct call_single_queue {
spinlock_t lock;
};

-static void __cpuinit init_call_single_data(void)
+static int __cpuinit init_call_single_data(void)
{
int i;

@@ -43,6 +43,7 @@ static void __cpuinit init_call_single_d
spin_lock_init(&q->lock);
INIT_LIST_HEAD(&q->list);
}
+ return 0;
}
early_initcall(init_call_single_data);



--
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/