Re: [PATCH] neofb.c

From: Andrey Panin (pazke@orbita1.ru)
Date: Mon May 27 2002 - 01:40:26 EST


On Sat, May 25, 2002 at 02:02:16PM +0200, Thomas 'Dent' Mirlacher wrote:
> gcc 3.1 seems to be unhappy:
> neofb.c:2321: initialized causes a section type conflict
>
> the simple patch for this would be:
> ===== neofb.c 1.8 vs edited =====
> --- 1.8/drivers/video/neofb.c Thu May 2 00:56:02 2002
> +++ edited/neofb.c Sat May 25 18:50:14 2002
> @@ -2318,10 +2318,10 @@
> return 0;
> }
>
> -static int __init initialized = 0;
> -
> int __init neofb_init(void)
> {
> + static int initialized = 0;
> +
> DBG("neofb_init");
>
> if (disabled)

correct solution is to change __init to __initdata.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net


- 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 : Fri May 31 2002 - 22:00:19 EST