Re: [PATCH] net drivers: missing __init's

From: Andrzej Krzysztofowicz (ankry@pg.gda.pl)
Date: Mon Apr 09 2001 - 07:29:55 EST


"Andrey Panin wrote:"
>
> attached patches add missing __init and (__devinit) to some network drivers:
> at1700.c, eepro.c, epic100.c, hamachi.c, sis900.c,=20
> tokenring/abyss.c, tokenring/tmsisa.c, tokenring/tmspci.c.
>

> diff -ur -x *.o -x *.flags /linux.vanilla/drivers/net/tokenring/tmsisa.c /l=
> inux/drivers/net/tokenring/tmsisa.c
> --- /linux.vanilla/drivers/net/tokenring/tmsisa.c Mon Apr 2 15:45:22 2001
> +++ /linux/drivers/net/tokenring/tmsisa.c Sun Apr 8 18:18:51 2001
> @@ -19,7 +19,7 @@
> * TODO:
> * 1. Add support for Proteon TR ISA adapters (1392, 1392+)
> */
> -static const char *version = "tmsisa.c: v1.00 14/01/2001 by Jochen Friedrich\n";
> +static const char version[] __initdata = "tmsisa.c: v1.00 14/01/2001 by Jochen Friedrich\n";

You should move this line after
#include <linux/init.h>

> #include <linux/module.h>
> #include <linux/kernel.h>

Andrzej

-
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/



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:11 EST