Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758715AbYARJRH (ORCPT ); Fri, 18 Jan 2008 04:17:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753622AbYARJQx (ORCPT ); Fri, 18 Jan 2008 04:16:53 -0500 Received: from mtagate4.de.ibm.com ([195.212.29.153]:25030 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752808AbYARJQv (ORCPT ); Fri, 18 Jan 2008 04:16:51 -0500 From: Jan-Bernd Themann To: Greg KH Subject: Re: [2.6.24-rc6-mm1]Build failure in drivers/net/ehea/ehea_main.c Date: Fri, 18 Jan 2008 10:16:48 +0100 User-Agent: KMail/1.8.2 Cc: Sudhir Kumar , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, sam@ravnborg.org, Christoph Raisch References: <20080108163305.GB10026@in.ibm.com> <20080110173418.GA14728@kroah.com> In-Reply-To: <20080110173418.GA14728@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801181016.49128.ossthema@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1720 Lines: 36 Hi, sorry for answering so late, I'm only tracking netdev and ppc mailing list. On Thursday 10 January 2008 18:34, Greg KH wrote: > > The structure device_driver(in device.h) has a member struct driver_private which > > contains the member kobj (according to drivers/base/base.h). > > But in device.h struct driver_private has been declared localy and > > neither defined nor included from base.h. > > So my effort to use driver->driver_private->obj also does not work. > > (I am surprised from where do you access the struct device_driver) > > That is because a driver should not be accessing such a field. > > And especially not in this manner, why would this driver be creating a > symlink that has already been created by the driver core? This whole > thing can just be removed with no problems. Can you try just removing > the ehea_driver_sysfs_add and ehea_driver_sysfs_remove functions to > verify this as I don't have the hardware present to test it out. The eHEA driver tries to orginize its sys-entries as close as possible to other ethernet drivers. Each eHEA NIC has multiple ports which is not that common in PCI. This means that each port is represented by a subdirectory which has not the "driver" sys-link, only the root directory has. Some tools expect to have this driver link in each port directory. That is the reason why this link is created manually. Are there any other ways to create this link? Regards, Jan-Bernd Themann + Christoph Raisch -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/