* parport compile error in 2.6.4-r2c (sparc64)
@ 2004-03-04 9:44 Meelis Roos
2004-03-04 11:52 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Meelis Roos @ 2004-03-04 9:44 UTC (permalink / raw)
To: linux-kernel
FYI:
drivers/parport/parport_sunbpp.c: In function `init_one_port':
drivers/parport/parport_sunbpp.c:338: warning: passing arg 2 of `request_irq' from incompatible pointer type
drivers/parport/parport_sunbpp.c: In function `parport_sunbpp_exit':
drivers/parport/parport_sunbpp.c:387: error: incompatible type for argument 1 of `list_empty'
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parport compile error in 2.6.4-r2c (sparc64)
2004-03-04 9:44 parport compile error in 2.6.4-r2c (sparc64) Meelis Roos
@ 2004-03-04 11:52 ` Andrew Morton
2004-03-04 13:00 ` Meelis Roos
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2004-03-04 11:52 UTC (permalink / raw)
To: Meelis Roos; +Cc: linux-kernel
Meelis Roos <mroos@linux.ee> wrote:
>
> drivers/parport/parport_sunbpp.c: In function `init_one_port':
> drivers/parport/parport_sunbpp.c:338: warning: passing arg 2 of `request_irq' from incompatible pointer type
> drivers/parport/parport_sunbpp.c: In function `parport_sunbpp_exit':
> drivers/parport/parport_sunbpp.c:387: error: incompatible type for argument 1 of `list_empty'
Does this fix?
diff -puN drivers/parport/parport_sunbpp.c~parport_sunbpp-build-fix drivers/parport/parport_sunbpp.c
--- 25/drivers/parport/parport_sunbpp.c~parport_sunbpp-build-fix 2004-03-04 03:49:57.000000000 -0800
+++ 25-akpm/drivers/parport/parport_sunbpp.c 2004-03-04 03:50:48.000000000 -0800
@@ -44,9 +44,11 @@
#define dprintk(x)
#endif
-static void parport_sunbpp_interrupt(int irq, void *dev_id, struct pt_regs *regs)
+static irqreturn_t parport_sunbpp_interrupt(int irq, void *dev_id,
+ struct pt_regs *regs)
{
parport_generic_irq(irq, (struct parport *) dev_id, regs);
+ return IRQ_HANDLED;
}
static void parport_sunbpp_disable_irq(struct parport *p)
@@ -384,7 +386,7 @@ static int __init parport_sunbpp_init(vo
static void __exit parport_sunbpp_exit(void)
{
- while (!list_empty(port_list)) {
+ while (!list_empty(&port_list)) {
Node *node = list_entry(port_list.next, Node, list);
struct parport *p = node->port;
struct parport_operations *ops = p->ops;
_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: parport compile error in 2.6.4-r2c (sparc64)
2004-03-04 11:52 ` Andrew Morton
@ 2004-03-04 13:00 ` Meelis Roos
0 siblings, 0 replies; 3+ messages in thread
From: Meelis Roos @ 2004-03-04 13:00 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
> Does this fix?
Yes.
--
Meelis Roos (mroos@ut.ee) http://www.cs.ut.ee/~mroos/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-04 13:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-04 9:44 parport compile error in 2.6.4-r2c (sparc64) Meelis Roos
2004-03-04 11:52 ` Andrew Morton
2004-03-04 13:00 ` Meelis Roos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®