[openib-general] Re: ppc64 build failure (4778)

Roland Dreier rdreier at cisco.com
Thu Jan 5 11:44:47 PST 2006


    Nishanth> Hi all, New build failure today:

    Nishanth> drivers/infiniband/core/sysfs.c: In function
    Nishanth> `ib_device_hotplug':
    Nishanth> drivers/infiniband/core/sysfs.c:440: warning: implicit
    Nishanth> declaration of function `add_hotplug_env_var'

Looks like add_hotplug_env_var was renamed to add_uevent_var in the
upstream kernel.  I checked in the following hack (replacing the old
hack for 2.6.15 ;):

--- include/rdma/ib_verbs.h	(revision 4754)
+++ include/rdma/ib_verbs.h	(working copy)
@@ -48,12 +48,11 @@
 #include <asm/scatterlist.h>
 #include <asm/uaccess.h>
 
-/* XXX remove this compatibility hack when 2.6.15 is released */
+/* XXX remove this compatibility hack when 2.6.16 is released */
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
-#define class_device_create(cls, parent, devt, device, fmt, arg...) \
-	class_device_create(cls, devt, device, fmt, ## arg)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
+#define add_hotplug_env_var add_uevent_var
 #endif /* XXX end of hack */
 
 union ib_gid {



More information about the general mailing list