From: Tobias Hunger Subject: Trivial patch: blkfront C99 warnings about mixing declarations and code Date: Mon, 14 Nov 2005 12:16:40 +0100 Message-ID: <200511141216.44281.tobias@aquazul.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1493475674==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1493475674== Content-Type: multipart/signed; boundary="nextPart4907108.QIC9ETii5b"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4907108.QIC9ETii5b Content-Type: multipart/mixed; boundary="Boundary-01=_YIHeDo5EIOrPiwZ" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_YIHeDo5EIOrPiwZ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Here is another trivial fix. This time about compile time warnings in=20 blkfront.c Regards, Tobias --Boundary-01=_YIHeDo5EIOrPiwZ Content-Type: text/x-diff; charset="us-ascii"; name="blkfront-warning-fix.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="blkfront-warning-fix.patch" diff -urN orig/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c patched= /linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c =2D-- orig/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-11-13 = 05:56:26.000000000 +0100 +++ patched/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c 2005-11-14= 12:13:04.000000000 +0100 @@ -293,13 +293,14 @@ { unsigned long sectors, sector_size; unsigned int binfo; + int err; =20 if (info->connected =3D=3D BLKIF_STATE_CONNECTED) return; =20 DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend); =20 =2D int err =3D xenbus_gather(NULL, info->xbdev->otherend, + err =3D xenbus_gather(NULL, info->xbdev->otherend, "sectors", "%lu", §ors, "info", "%u", &binfo, "sector-size", "%lu", §or_size, @@ -349,10 +350,10 @@ =20 static int blkfront_remove(struct xenbus_device *dev) { =2D DPRINTK("blkfront_remove: %s removed\n", dev->nodename); =2D struct blkfront_info *info =3D dev->data; =20 + DPRINTK("blkfront_remove: %s removed\n", dev->nodename); + blkif_free(info); =20 kfree(info); --Boundary-01=_YIHeDo5EIOrPiwZ-- --nextPart4907108.QIC9ETii5b Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDeHIcv0FZW3NyoqURAjH+AKChdz/5fqobAPi4k0vw5jhIcc+dUACgoj+k rnbTXX1QYiyefScLPeiMsrc= =0YvR -----END PGP SIGNATURE----- --nextPart4907108.QIC9ETii5b-- --===============1493475674== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1493475674==--