Skip to content

Commit

Permalink
IB: Include <linux/list.h> and <linux/rwsem.h> from <rdma/ib_verbs.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dotan Barak authored and Roland Dreier committed Aug 3, 2007
1 parent e8b398d commit bfb3ea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit bfb3ea1

Please sign in to comment.