[PATCH 3/5] typesafe: kthread_create and kthread_run

2008-02-04 Thread Rusty Russell
Using cast_if_type() we can have a callback funciton either of the exactly correct type to take "data", or to take a void *. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- include/linux/kthread.h | 30 +++--- kernel/kthread.c| 29

[PATCH 3/5] typesafe: kthread_create and kthread_run

2008-02-04 Thread Rusty Russell
Using cast_if_type() we can have a callback funciton either of the exactly correct type to take data, or to take a void *. Signed-off-by: Rusty Russell [EMAIL PROTECTED] --- include/linux/kthread.h | 30 +++--- kernel/kthread.c| 29