[ofa-general] Re: linux-next: infiniband build failure

Greg KH greg at kroah.com
Thu Apr 3 20:10:20 PDT 2008


On Fri, Apr 04, 2008 at 01:55:32PM +1100, Stephen Rothwell wrote:
> Hi All,
> 
> Today's build of linux-next (x86_64 allmodconfig) produced this:
> 
> drivers/infiniband/hw/ipath/ipath_verbs.c: In function 'ipath_register_ib_device':
> drivers/infiniband/hw/ipath/ipath_verbs.c:2070: error: 'struct ib_device' has no member named 'class_dev'
> 
> This is caused by the driver-core patch
> "ib-convert-struct-class_device-to-struct-device.patch" which changes the
> class_dev member of struct ib_device to "dev" and infiniband commit
> 63fe2f55dcd6d227bb9dc0aedec4431a9a7a8f92 ("IB/ipath: add calls to new
> 7220 code and enable in build") which adds another reference to class_dev.
> 
> I applied the following patch (because reverting the above driver-core
> patch was too hard). I am not sure if it is the correct patch, but it
> does build  This needs to be sorted out.  Greg, could the driver-core
> patch be delivered through the infiniband tree? (This would, of course
> cause problems for
> driver-core-remove-no-longer-used-struct-class_device.patch.)

Your patch looks correct to me.

Roland wanted the ib patch to go through my tree, and I figure we will
work out these issues during the 2 week merge window.

thanks,

greg k-h



More information about the general mailing list