[openib-general] compile error

Michael S. Tsirkin mst at mellanox.co.il
Tue Nov 14 04:25:26 PST 2006


> Quoting r. zhu shi song <zhushisongzhu at yahoo.com>:
> Subject: Re: compile error
> 
> I download OFED-1.1.1.tar.gz and try to compile it
> under FC5 with kernel 2.6.18.  But there are errors
> when compile ipoib_fs.c. see below:

Right. FC5 has a patched kernel, not a mainline 2.6.18 that OFED 1.1
supports. The following might help though.

-- 
MST
-------------- next part --------------
Index: gen2_devel/drivers/infiniband/ulp/ipoib/ipoib_fs.c
===================================================================
--- gen2_devel.orig/drivers/infiniband/ulp/ipoib/ipoib_fs.c
+++ gen2_devel/drivers/infiniband/ulp/ipoib/ipoib_fs.c
@@ -141,7 +141,7 @@ static int ipoib_mcg_open(struct inode *
 		return ret;
 
 	seq = file->private_data;
-	seq->private = inode->i_private;
+	seq->private = inode->u.generic_ip;
 
 	return 0;
 }
@@ -247,7 +247,7 @@ static int ipoib_path_open(struct inode 
 		return ret;
 
 	seq = file->private_data;
-	seq->private = inode->i_private;
+	seq->private = inode->u.generic_ip;
 
 	return 0;
 }


More information about the general mailing list