[ofa-general] [PATCH] rdma/ib_verbs.h: add include to linux/list.h and linux/rwsem.h

Dotan Barak dotanb at dev.mellanox.co.il
Tue Jul 31 06:49:15 PDT 2007


ib_verbs.h uses the structs list_head and rw_semaphore, so while
the files linux/list.h and linux/rwsem.h seems 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 at dev.mellanox.co.il>

---

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 0627a6a..7a99f11 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -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>



More information about the general mailing list