lkml.org 
[lkml]   [2003]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.5.70-mm3: sdla.c doesn't compile
It seems the following compile error when trying to compile sdla,c 
statically into the kernel comes from Linus' tree:

<-- snip -->

...
CC drivers/net/wan/sdla.o
drivers/net/wan/sdla.c: In function `sdla_cmd':
drivers/net/wan/sdla.c:443: warning: comparison of distinct pointer
types lacks a cast
drivers/net/wan/sdla.c: In function `exit_sdla':
drivers/net/wan/sdla.c:1685: `sdla0' undeclared (first use in this
function)
drivers/net/wan/sdla.c:1685: (Each undeclared identifier is reported
only once
drivers/net/wan/sdla.c:1685: for each function it appears in.)
make[3]: *** [drivers/net/wan/sdla.o] Error 1

<-- snip -->


I'm not sure whether the following is the best solution but it fixes the
problem:


--- linux-2.5.70-mm3/drivers/net/wan/sdla.c.old 2003-05-31 15:49:52.000000000 +0200
+++ linux-2.5.70-mm3/drivers/net/wan/sdla.c 2003-05-31 15:50:39.000000000 +0200
@@ -1662,12 +1662,10 @@
return 0;
}

-#ifdef MODULE
static struct net_device sdla0 = {
.name = "sdla0",
.init = sdla_init
};
-#endif /* MODULE */

static int __init init_sdla(void)
{


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.876 / U:1.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site