Re: Twice now with the net thing.

Mike Galbraith (mikeg@weiden.de)
Sat, 13 Nov 1999 16:07:26 +0100 (CET)


On Fri, 12 Nov 1999, Brent M. Smith wrote:

> This is the second kernel, (2.3.27 & 2.3.28) in which I got this error:
>
> make[3]: Entering directory `/usr/src/linux-2.3.28/drivers/net'
> gcc -D__KERNEL__ -I/usr/src/linux-2.3.28/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=586
> -march=i586 -c -o setup.o setup.c
> setup.c:112: `slhc_install' undeclared here (not in a function)
> setup.c:112: initializer element for `pci_probes[0].probe' is not constant

Hi,

Below is what I did here.

-Mike

--- linux-2.3.27/drivers/net/setup.c.org Fri Nov 12 10:47:38 1999
+++ linux-2.3.27/drivers/net/setup.c Fri Nov 12 11:20:51 1999
@@ -24,6 +24,7 @@
extern int bigmac_probe(void);
extern int bmac_probe(void);
extern int cpm_enet_init(void);
+extern int slhc_install(void);
extern int dlci_setup(void);
extern int dgrs_probe(void);
extern int dmfe_reg_board(void);
--- linux-2.3.27/drivers/net/slhc.c.org Fri Nov 12 11:18:38 1999
+++ linux-2.3.27/drivers/net/slhc.c Fri Nov 12 11:21:43 1999
@@ -752,8 +752,9 @@
}

#else /* MODULE */
-void __init slhc_install(void)
+int __init slhc_install(void)
{
+ return 0;
}

#endif /* MODULE */

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