Skip to content

Commit

Permalink
[PATCH] uml: workqueue build fix
Browse files Browse the repository at this point in the history
  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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 7, 2006
1 parent 822191a commit a2ce774
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ static irqreturn_t line_interrupt(int irq, void *data)
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)
chan_interrupt(&line->chan_list, &line->task, line->tty,
Expand Down Expand Up @@ -443,7 +443,7 @@ int line_open(struct line *lines, struct tty_struct *tty)
* is registered.
*/
enable_chan(line);
INIT_WORK(&line->task, line_timer_cb, line);
INIT_DELAYED_WORK(&line->task, line_timer_cb);

if(!line->sigio){
chan_enable_winch(&line->chan_list, tty);
Expand Down
2 changes: 1 addition & 1 deletion arch/um/include/chan_kern.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct chan {
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);
extern int parse_chan_pair(char *str, struct line *line, int device,
const struct chan_opts *opts);
Expand Down
2 changes: 1 addition & 1 deletion arch/um/include/line.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct line {
char *tail;

int sigio;
struct work_struct task;
struct delayed_work task;
const struct line_driver *driver;
int have_irq;
};
Expand Down

0 comments on commit a2ce774

Please sign in to comment.