From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SiYKc-0006UN-C5 for mharc-grub-devel@gnu.org; Sat, 23 Jun 2012 17:57:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiYKa-0006UH-7k for grub-devel@gnu.org; Sat, 23 Jun 2012 17:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiYKY-0004ai-IB for grub-devel@gnu.org; Sat, 23 Jun 2012 17:57:23 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:38195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiYKY-0004ae-94 for grub-devel@gnu.org; Sat, 23 Jun 2012 17:57:22 -0400 Received: by wefh52 with SMTP id h52so2466182wef.0 for ; Sat, 23 Jun 2012 14:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=70wW5yAv4JUizah6R4Gs19Xqd8rzEbzq24TktFae/jU=; b=fSRkdtKhWZnI86KJ2EPaj7leJZh7/AMG8httBhFOl9l9cds5MAPSWJAjTUF82Onboz pvSTnNDmC8Xf087fRO6YfL76+ajhrCYkclbfAq9bOGwJZ6N0dlClDIsP0pNbBNKwRrdB rkbYHjboqsJufsFEfp8Fo6W2pgQqGM5s9K5nCDPyDLZqs8mxHFyJhY/uZbsiBFWdRpt+ STOKG32AW9X805QYeUrNKJ+yUTDMRHNPRH31QuIJRgbPWaUsCqW4s2NMawQsYQWWcbbx zG6CqsWpY4F0zSfJxqBuA+zHS0s+hgcNZLA8YSKj8PNpQppLi3A/SsLSYHzaZngSQ2h+ Wdjg== Received: by 10.216.213.219 with SMTP id a69mr3646114wep.16.1340488640090; Sat, 23 Jun 2012 14:57:20 -0700 (PDT) Received: from debian.x201.phnet (101-232.197-178.cust.bluewin.ch. [178.197.232.101]) by mx.google.com with ESMTPS id dg2sm14444594wib.4.2012.06.23.14.57.19 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Jun 2012 14:57:19 -0700 (PDT) Message-ID: <4FE63BB6.9090003@gmail.com> Date: Sat, 23 Jun 2012 23:57:10 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Release of 2.00~rc1 References: <4FE62E30.7080608@gmail.com> <1340487031.26777.20.camel@pracovna> In-Reply-To: <1340487031.26777.20.camel@pracovna> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigD78D58C4FFEA4A2C8FDDC23F" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 21:57:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD78D58C4FFEA4A2C8FDDC23F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 23.06.2012 23:30, Ale=C5=A1 Nesrsta wrote: > Hi, > I tried compile source from link and I got this error: >=20 Your compiler is too warning-prone :( Try this: =3D=3D=3D modified file 'grub-core/loader/i386/linux.c' --- grub-core/loader/i386/linux.c 2012-06-20 21:39:33 +0000 +++ grub-core/loader/i386/linux.c 2012-06-23 21:46:30 +0000 @@ -1043,7 +1043,6 @@ grub_addr_t addr_min, addr_max; grub_addr_t addr; grub_err_t err; - struct linux_kernel_header *lh; int i; int nfiles =3D 0; grub_uint8_t *ptr; @@ -1076,12 +1075,10 @@ =20 initrd_pages =3D (page_align (size) >> 12); =20 - lh =3D (struct linux_kernel_header *) &linux_params; - /* Get the highest address available for the initrd. */ - if (grub_le_to_cpu16 (lh->version) >=3D 0x0203) + if (grub_le_to_cpu16 (linux_params.version) >=3D 0x0203) { - addr_max =3D grub_cpu_to_le32 (lh->initrd_addr_max); + addr_max =3D grub_cpu_to_le32 (linux_params.initrd_addr_max); =20 /* XXX in reality, Linux specifies a bogus value, so it is necessary to make sure that ADDR_MAX does not exceed @@ -1144,9 +1141,9 @@ grub_dprintf ("linux", "Initrd, addr=3D0x%x, size=3D0x%x\n", (unsigned) addr, (unsigned) size); =20 - lh->ramdisk_image =3D initrd_mem_target; - lh->ramdisk_size =3D size; - lh->root_dev =3D 0x0100; /* XXX */ + linux_params.ramdisk_image =3D initrd_mem_target; + linux_params.ramdisk_size =3D size; + linux_params.root_dev =3D 0x0100; /* XXX */ =20 fail: for (i =3D 0; i < nfiles; i++) --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigD78D58C4FFEA4A2C8FDDC23F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk/mO7YACgkQNak7dOguQgn5qgEAjjOxOM+38DNk+AiVfjSwf1cC j6DWoLQmw9eTxozwcOAA/iglCKZ3KHBiHeXlS9aB0mp8jdbwblv+HaD0l2S1SvNs =gReZ -----END PGP SIGNATURE----- --------------enigD78D58C4FFEA4A2C8FDDC23F--