X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fmd%2Fkcopyd.c;h=b46f6c575f7ebd5ee79dbe543525ed5459e173d6;hb=5ec1862e7b612d804ca10a0475dccf98c857efec;hp=73ab875fb1580789a0e260557caad2cea40e44de;hpb=8f7c58814eb75bf97b8bc18d107b2e26f28b6585;p=powerpc.git diff --git a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c index 73ab875fb1..b46f6c575f 100644 --- a/drivers/md/kcopyd.c +++ b/drivers/md/kcopyd.c @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -204,7 +203,7 @@ struct kcopyd_job { /* FIXME: this should scale with the number of pages */ #define MIN_JOBS 512 -static kmem_cache_t *_job_cache; +static struct kmem_cache *_job_cache; static mempool_t *_job_pool; /* @@ -418,7 +417,7 @@ static int process_jobs(struct list_head *jobs, int (*fn) (struct kcopyd_job *)) /* * kcopyd does this every time it's woken up. */ -static void do_work(void *ignored) +static void do_work(struct work_struct *ignored) { /* * The order that these are called is *very* important. @@ -629,7 +628,7 @@ static int kcopyd_init(void) } kcopyd_clients++; - INIT_WORK(&_kcopyd_work, do_work, NULL); + INIT_WORK(&_kcopyd_work, do_work); mutex_unlock(&kcopyd_init_lock); return 0; }