From: "Jan Beulich" Subject: Re: Problem compiling Kernel 2.6.18 - netfront.c Date: Tue, 12 Oct 2010 10:54:51 +0100 Message-ID: <4CB44C8B020000780001C6EA@vpn.id2.novell.com> References: <3132239.31286873780902.JavaMail.root@uhura> <1286875232.2003.1683.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1286875232.2003.1683.camel@zakaz.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell , Carsten Schiers Cc: Ky Srinivasan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 12.10.10 at 11:20, Ian Campbell wrote: > Looks like 2.6.18 sysfs differs from whichever kernel the patch was > originally written against. Yes, I'm sorry for that, I didn't notice that the corresponding code in netback changed twice (in .21 and .30). > Untested patch based on the netback get_drvinfo method from 2.6.18 > below, does it work for you? Looks exactly like what's needed. Acked-by: Jan Beulich > diff -r 578f036ec7dd drivers/xen/netfront/netfront.c > --- a/drivers/xen/netfront/netfront.c Mon Oct 11 10:25:55 2010 +0100 > +++ b/drivers/xen/netfront/netfront.c Tue Oct 12 10:19:15 2010 +0100 > @@ -1776,7 +1776,7 @@ static void netfront_get_drvinfo(struct=20 > struct ethtool_drvinfo *info) > { > strcpy(info->driver, "netfront"); > - strcpy(info->bus_info, dev_name(dev->dev.parent)); > + strcpy(info->bus_info, dev->class_dev.dev->bus_id); > } > =20 > static int network_connect(struct net_device *dev) >=20 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com=20 > http://lists.xensource.com/xen-devel=20