lkml.org 
[lkml]   [2002]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.044 / U:1.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site