From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdwQm-0002yU-T7 for qemu-devel@nongnu.org; Wed, 10 May 2006 17:41:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdwQl-0002yI-Oo for qemu-devel@nongnu.org; Wed, 10 May 2006 17:41:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdwQl-0002yF-LP for qemu-devel@nongnu.org; Wed, 10 May 2006 17:41:15 -0400 Received: from [212.27.42.27] (helo=smtp1-g19.free.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FdwS8-00024N-5Q for qemu-devel@nongnu.org; Wed, 10 May 2006 17:42:40 -0400 Received: from crazy.kos.nx (humanoidz.org [82.237.107.242]) by smtp1-g19.free.fr (Postfix) with ESMTP id B65DF9AC1F for ; Wed, 10 May 2006 23:41:13 +0200 (CEST) Date: Wed, 10 May 2006 23:41:01 +0200 From: Thomas Petazzoni Message-ID: <20060510234101.55cb336b@crazy.kos.nx> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_vtS4=1795TGjbOwtIy..7Y+"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: [Qemu-devel] [Patch] Kqemu patch for 2.6.17-rc2 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Sig_vtS4=1795TGjbOwtIy..7Y+ Content-Type: multipart/mixed; boundary=MP_q.cZ6KbVA2j7IgpPMM+KfA1 --MP_q.cZ6KbVA2j7IgpPMM+KfA1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On 2.6.17-rc2, the MODULE_PARM() way of declaring module parameters seems to have disappeared (it is anyway deprecated since the beginning of the 2.6 series). As such, kqemu-1.3.0pre7 doesn't compile. /home/thomas/kqemu-1.3.0pre7/kqemu-linux.c:52: error: syntax error before s= tring constant /home/thomas/kqemu-1.3.0pre7/kqemu-linux.c:52: warning: type defaults to = =E2=80=98int=E2=80=99 in declaration of =E2=80=98MODULE_PARM=E2=80=99 /home/thomas/kqemu-1.3.0pre7/kqemu-linux.c:52: warning: function declaratio= n isn=E2=80=99t a prototype /home/thomas/kqemu-1.3.0pre7/kqemu-linux.c:52: warning: data definition has= no type or storage class The attached patch fixes it. Sincerly, Thomas --=20 PETAZZONI Thomas - thomas.petazzoni@enix.org=20 http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@jabber.dk http://{agenda,livret}dulibre.org - http://www.toulibre.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 --MP_q.cZ6KbVA2j7IgpPMM+KfA1 Content-Type: text/x-patch; name=kqemu-linux-2.6.17-rc2.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=kqemu-linux-2.6.17-rc2.patch --- kqemu-1.3.0pre7/kqemu-linux.c 2006-05-07 16:28:05.000000000 +0200 +++ kqemu-1.3.0pre7.new/kqemu-linux.c 2006-05-10 23:35:25.000000000 +0200 @@ -49,7 +49,7 @@ /* if 0 is used, then devfs/udev is used to automatically create the device */ int major =3D 250; -MODULE_PARM(major,"i"); +module_param(major, int, 0); =20 /* Lock the page at virtual address 'user_addr' and return its physical address (page index). Return a host OS private user page --MP_q.cZ6KbVA2j7IgpPMM+KfA1-- --Sig_vtS4=1795TGjbOwtIy..7Y+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEYl349lPLMJjT96cRAvLdAKCu0wPh4uZ6cbzW7cydIvn1hZPc1wCfbzEQ 1pKxvXMRJ/vhIVRKas//IJQ= =Q00T -----END PGP SIGNATURE----- --Sig_vtS4=1795TGjbOwtIy..7Y+--