Переглянути джерело

IB: Include <linux/list.h> and <linux/rwsem.h> from <rdma/ib_verbs.h>

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>
Dotan Barak 18 роки тому
батько
коміт
bfb3ea1251
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      include/rdma/ib_verbs.h

+ 2 - 0
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>