]> err.no Git - linux-2.6/commitdiff
IB: Include <linux/list.h> and <linux/rwsem.h> from <rdma/ib_verbs.h>
authorDotan Barak <dotanb@dev.mellanox.co.il>
Tue, 31 Jul 2007 13:49:15 +0000 (16:49 +0300)
committerRoland Dreier <rolandd@cisco.com>
Fri, 3 Aug 2007 17:45:18 +0000 (10:45 -0700)
ib_verbs.h uses struct list_head and rw_semaphore, so while the files
<linux/list.h> and <linux/rwsem.h> seem to be pulled in indirectly by
the other header files it includes, the right thing is to include
those files directly.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_verbs.h

index 0627a6aa282ac220660d625cd832b34ed939de63..7a99f1125d24dbbcea811d9baa3c0906eb1d66da 100644 (file)
@@ -46,6 +46,8 @@
 #include <linux/mm.h>
 #include <linux/dma-mapping.h>
 #include <linux/kref.h>
+#include <linux/list.h>
+#include <linux/rwsem.h>
 
 #include <asm/atomic.h>
 #include <asm/scatterlist.h>