Re: [PATCH] neofb.c

Andrey Panin (pazke@orbita1.ru)
Mon, 27 May 2002 10:40:26 +0400


--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> the simple patch for this would be:
> =3D=3D=3D=3D=3D neofb.c 1.8 vs edited =3D=3D=3D=3D=3D
> --- 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;
> }
> =20
> -static int __init initialized =3D 0;
> -
> int __init neofb_init(void)
> {
> + static int initialized =3D 0;
> +
> DBG("neofb_init");
> =20
> if (disabled)

correct solution is to change __init to __initdata.

--=20
Andrey Panin | Embedded systems software engineer
pazke@orbita1.ru | PGP key: wwwkeys.eu.pgp.net
--huq684BweRXVnRxX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE88dTaBm4rlNOo3YgRArQ/AJwNfZfLgSwl9fRweXRiBoBcg1khfQCdHmZ4
//5ulWHllQ9clvRRskPDCEU=
=0D9E
-----END PGP SIGNATURE-----

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