mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
WorkStruct: make allyesconfig
Fix up for make allyesconfig. Signed-Off-By: David Howells <[email protected]>
This commit is contained in:
parent
65f27f3844
commit
c4028958b6
282 changed files with 1771 additions and 1450 deletions
|
|
@ -458,11 +458,11 @@ static void dec_pending(struct crypt_io *io, int error)
|
|||
* interrupt context.
|
||||
*/
|
||||
static struct workqueue_struct *_kcryptd_workqueue;
|
||||
static void kcryptd_do_work(void *data);
|
||||
static void kcryptd_do_work(struct work_struct *work);
|
||||
|
||||
static void kcryptd_queue_io(struct crypt_io *io)
|
||||
{
|
||||
INIT_WORK(&io->work, kcryptd_do_work, io);
|
||||
INIT_WORK(&io->work, kcryptd_do_work);
|
||||
queue_work(_kcryptd_workqueue, &io->work);
|
||||
}
|
||||
|
||||
|
|
@ -618,9 +618,9 @@ static void process_read_endio(struct crypt_io *io)
|
|||
dec_pending(io, crypt_convert(cc, &ctx));
|
||||
}
|
||||
|
||||
static void kcryptd_do_work(void *data)
|
||||
static void kcryptd_do_work(struct work_struct *work)
|
||||
{
|
||||
struct crypt_io *io = data;
|
||||
struct crypt_io *io = container_of(work, struct crypt_io, work);
|
||||
|
||||
if (io->post_process)
|
||||
process_read_endio(io);
|
||||
|
|
|
|||
|
|
@ -104,8 +104,8 @@ typedef int (*action_fn) (struct pgpath *pgpath);
|
|||
static kmem_cache_t *_mpio_cache;
|
||||
|
||||
struct workqueue_struct *kmultipathd;
|
||||
static void process_queued_ios(void *data);
|
||||
static void trigger_event(void *data);
|
||||
static void process_queued_ios(struct work_struct *work);
|
||||
static void trigger_event(struct work_struct *work);
|
||||
|
||||
|
||||
/*-----------------------------------------------
|
||||
|
|
@ -173,8 +173,8 @@ static struct multipath *alloc_multipath(struct dm_target *ti)
|
|||
INIT_LIST_HEAD(&m->priority_groups);
|
||||
spin_lock_init(&m->lock);
|
||||
m->queue_io = 1;
|
||||
INIT_WORK(&m->process_queued_ios, process_queued_ios, m);
|
||||
INIT_WORK(&m->trigger_event, trigger_event, m);
|
||||
INIT_WORK(&m->process_queued_ios, process_queued_ios);
|
||||
INIT_WORK(&m->trigger_event, trigger_event);
|
||||
m->mpio_pool = mempool_create_slab_pool(MIN_IOS, _mpio_cache);
|
||||
if (!m->mpio_pool) {
|
||||
kfree(m);
|
||||
|
|
@ -379,9 +379,10 @@ static void dispatch_queued_ios(struct multipath *m)
|
|||
}
|
||||
}
|
||||
|
||||
static void process_queued_ios(void *data)
|
||||
static void process_queued_ios(struct work_struct *work)
|
||||
{
|
||||
struct multipath *m = (struct multipath *) data;
|
||||
struct multipath *m =
|
||||
container_of(work, struct multipath, process_queued_ios);
|
||||
struct hw_handler *hwh = &m->hw_handler;
|
||||
struct pgpath *pgpath = NULL;
|
||||
unsigned init_required = 0, must_queue = 1;
|
||||
|
|
@ -421,9 +422,10 @@ out:
|
|||
* An event is triggered whenever a path is taken out of use.
|
||||
* Includes path failure and PG bypass.
|
||||
*/
|
||||
static void trigger_event(void *data)
|
||||
static void trigger_event(struct work_struct *work)
|
||||
{
|
||||
struct multipath *m = (struct multipath *) data;
|
||||
struct multipath *m =
|
||||
container_of(work, struct multipath, trigger_event);
|
||||
|
||||
dm_table_event(m->ti->table);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -883,7 +883,7 @@ static void do_mirror(struct mirror_set *ms)
|
|||
do_writes(ms, &writes);
|
||||
}
|
||||
|
||||
static void do_work(void *ignored)
|
||||
static void do_work(struct work_struct *ignored)
|
||||
{
|
||||
struct mirror_set *ms;
|
||||
|
||||
|
|
@ -1269,7 +1269,7 @@ static int __init dm_mirror_init(void)
|
|||
dm_dirty_log_exit();
|
||||
return r;
|
||||
}
|
||||
INIT_WORK(&_kmirrord_work, do_work, NULL);
|
||||
INIT_WORK(&_kmirrord_work, do_work);
|
||||
|
||||
r = dm_register_target(&mirror_target);
|
||||
if (r < 0) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
#define SNAPSHOT_PAGES 256
|
||||
|
||||
struct workqueue_struct *ksnapd;
|
||||
static void flush_queued_bios(void *data);
|
||||
static void flush_queued_bios(struct work_struct *work);
|
||||
|
||||
struct pending_exception {
|
||||
struct exception e;
|
||||
|
|
@ -528,7 +528,7 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
|
|||
}
|
||||
|
||||
bio_list_init(&s->queued_bios);
|
||||
INIT_WORK(&s->queued_bios_work, flush_queued_bios, s);
|
||||
INIT_WORK(&s->queued_bios_work, flush_queued_bios);
|
||||
|
||||
/* Add snapshot to the list of snapshots for this origin */
|
||||
/* Exceptions aren't triggered till snapshot_resume() is called */
|
||||
|
|
@ -603,9 +603,10 @@ static void flush_bios(struct bio *bio)
|
|||
}
|
||||
}
|
||||
|
||||
static void flush_queued_bios(void *data)
|
||||
static void flush_queued_bios(struct work_struct *work)
|
||||
{
|
||||
struct dm_snapshot *s = (struct dm_snapshot *) data;
|
||||
struct dm_snapshot *s =
|
||||
container_of(work, struct dm_snapshot, queued_bios_work);
|
||||
struct bio *queued_bios;
|
||||
unsigned long flags;
|
||||
|
||||
|
|
|
|||
|
|
@ -417,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.
|
||||
|
|
@ -628,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue