Commit a2ce7740 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] uml: workqueue build fix

  arch/um/drivers/chan_kern.c:643: error: conflicting types for 'chan_interrupt'
  arch/um/include/chan_kern.h:31: error: previous declaration of 'chan_interrupt'

Cc: David Howells <dhowells@redhat.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 822191a2
...@@ -31,9 +31,9 @@ static irqreturn_t line_interrupt(int irq, void *data) ...@@ -31,9 +31,9 @@ static irqreturn_t line_interrupt(int irq, void *data)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static void line_timer_cb(void *arg) static void line_timer_cb(struct work_struct *work)
{ {
struct line *line = arg; struct line *line = container_of(work, struct line, task.work);
if(!line->throttled) if(!line->throttled)
chan_interrupt(&line->chan_list, &line->task, line->tty, chan_interrupt(&line->chan_list, &line->task, line->tty,
...@@ -443,7 +443,7 @@ int line_open(struct line *lines, struct tty_struct *tty) ...@@ -443,7 +443,7 @@ int line_open(struct line *lines, struct tty_struct *tty)
* is registered. * is registered.
*/ */
enable_chan(line); enable_chan(line);
INIT_WORK(&line->task, line_timer_cb, line); INIT_DELAYED_WORK(&line->task, line_timer_cb);
if(!line->sigio){ if(!line->sigio){
chan_enable_winch(&line->chan_list, tty); chan_enable_winch(&line->chan_list, tty);
......
...@@ -27,7 +27,7 @@ struct chan { ...@@ -27,7 +27,7 @@ struct chan {
void *data; void *data;
}; };
extern void chan_interrupt(struct list_head *chans, struct work_struct *task, extern void chan_interrupt(struct list_head *chans, struct delayed_work *task,
struct tty_struct *tty, int irq); struct tty_struct *tty, int irq);
extern int parse_chan_pair(char *str, struct line *line, int device, extern int parse_chan_pair(char *str, struct line *line, int device,
const struct chan_opts *opts); const struct chan_opts *opts);
......
...@@ -51,7 +51,7 @@ struct line { ...@@ -51,7 +51,7 @@ struct line {
char *tail; char *tail;
int sigio; int sigio;
struct work_struct task; struct delayed_work task;
const struct line_driver *driver; const struct line_driver *driver;
int have_irq; int have_irq;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment