WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Problem compiling Kernel 2.6.18 - netfront.c

To: Carsten Schiers <carsten@xxxxxxxxxx>
Subject: Re: [Xen-devel] Problem compiling Kernel 2.6.18 - netfront.c
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 12 Oct 2010 10:20:32 +0100
Cc: ksrinivasan <ksrinivasan@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 12 Oct 2010 02:21:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3132239.31286873780902.JavaMail.root@uhura>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <3132239.31286873780902.JavaMail.root@uhura>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2010-10-12 at 09:56 +0100, Carsten Schiers wrote:
> 
> 
> Hi,
> 
> do I have a problem with my .config or does changeset 578f036ec7dd miss some 
> declaration?
> 
>  CC      drivers/xen/netfront/netfront.o                                      
>  
> drivers/xen/netfront/netfront.c: In function 'netfront_get_drvinfo':          
>   
> drivers/xen/netfront/netfront.c:1779: warning: implicit declaration of 
> function 
> 'dev_name'                                                                    
>   
> drivers/xen/netfront/netfront.c:1779: error: 'struct net_device' has no 
> member n
> amed 'dev'                                                                    
>   
> drivers/xen/netfront/netfront.c:1779: warning: passing argument 2 of 'strcpy' 
> ma
> kes pointer from integer without a cast                                       
>   
> make[3]: *** [drivers/xen/netfront/netfront.o] Fehler 1                       
>   
> make[2]: *** [drivers/xen/netfront] Fehler 2                                  
>   
> make[1]: *** [drivers/xen] Fehler 2                                           
>   
> make: *** [drivers] Fehler 2 

Looks like 2.6.18 sysfs differs from whichever kernel the patch was
originally written against.

Untested patch based on the netback get_drvinfo method from 2.6.18
below, does it work for you?

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 
                                 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);
 }
 
 static int network_connect(struct net_device *dev)



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>