public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Compile and link errors in irda in test11-pre3
@ 2000-11-12 15:42 Rasmus Andersen
  2000-11-12 21:50 ` [patch] Re: Compile and link errors in irda in test11-pre3, [patch] " Dag Brattli
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Andersen @ 2000-11-12 15:42 UTC (permalink / raw)
  To: dagb; +Cc: linux-irda, linux-kernel

Hi.

When I try to compile 2.4.0-test11-pre3 I get the following in
the link phase:

drivers/net/irda/irda.o: In function `nsc_ircc_hard_xmit_fir':
drivers/net/irda/irda.o(.text+0x346e): undefined reference to `nsc_ircc_change_speed_complete'
drivers/net/irda/irda.o: In function `toshoboe_hard_xmit':
drivers/net/irda/irda.o(.text+0x632e): undefined reference to `toshoboe_change_speed'
drivers/net/irda/irda.o: In function `ircc_hard_xmit':
drivers/net/irda/irda.o(.text+0x79c3): undefined reference to `smc_ircc_change_speed'
net/network.o: In function `irda_proto_init':
net/network.o(.text.init+0x41b3): undefined reference to `irda_init'
make: *** [vmlinux] Error 1


The patch below fixes this. I'm not familiar with the irda code, so
this might be all wrong (thus Linus is not cc'ed).


--- linux-240-t11-pre3-clean/net/irda/irsyms.c	Sun Nov 12 09:46:15 2000
+++ linux/net/irda/irsyms.c	Sun Nov 12 16:32:10 2000
@@ -182,7 +182,7 @@
 EXPORT_SYMBOL(irtty_set_packet_mode);
 #endif
 
-static int __init irda_init(void)
+int __init irda_init(void)
 {
 	IRDA_DEBUG(0, __FUNCTION__ "()\n");
 
--- linux-240-t11-pre3-clean/drivers/net/irda/nsc-ircc.c	Sun Nov 12 09:46:13 2000
+++ linux/drivers/net/irda/nsc-ircc.c	Sun Nov 12 16:05:17 2000
@@ -1129,7 +1129,7 @@
 	if ((speed = irda_get_speed(skb)) != self->io.speed) {
 		/* Check for empty frame */
 		if (!skb->len) {
-			nsc_ircc_change_speed_complete(self, speed); 
+			nsc_ircc_change_speed(self, speed); 
 			return 0;
 		} else
 			self->new_speed = speed;
--- linux-240-t11-pre3-clean/drivers/net/irda/smc-ircc.c	Sun Nov 12 09:46:13 2000
+++ linux/drivers/net/irda/smc-ircc.c	Sun Nov 12 16:23:48 2000
@@ -620,7 +620,7 @@
 	if ((speed = irda_get_speed(skb)) != self->io.speed) {
 		/* Check for empty frame */
 		if (!skb->len) {
-			smc_ircc_change_speed(self, speed); 
+			self->new_speed = speed; 
 			return 0;
 		} else
 			self->new_speed = speed;
--- linux-240-t11-pre3-clean/drivers/net/irda/toshoboe.c	Sun Nov 12 09:46:13 2000
+++ linux/drivers/net/irda/toshoboe.c	Sun Nov 12 16:20:17 2000
@@ -275,7 +275,7 @@
   if ((speed = irda_get_speed(skb)) != self->io.speed) {
 	/* Check for empty frame */
 	if (!skb->len) {
-	    toshoboe_change_speed(self, speed); 
+	    self->new_speed = speed; 
 	    return 0;
 	} else
 	    self->new_speed = speed;

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

"God prevent we should ever be twenty years without a revolution." 
  -- Thomas Jefferson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-12 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-12 15:42 Compile and link errors in irda in test11-pre3 Rasmus Andersen
2000-11-12 21:50 ` [patch] Re: Compile and link errors in irda in test11-pre3, [patch] " Dag Brattli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox