Messages in this thread | | | Date | Mon, 27 May 2002 10:40:26 +0400 | From | Andrey Panin <> | Subject | Re: [PATCH] neofb.c |
| |
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[unhandled content-type:application/pgp-signature] | |