IB: Include <linux/kref.h> explicitly in <rdma/ib_verbs.h>
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sun, 4 Feb 2007 22:11:55 +0000 (14:11 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sun, 4 Feb 2007 22:11:55 +0000 (14:11 -0800)
<rdma/ib_verbs.h> uses struct kref, so it should include <linux/kref.h>
explicitly to avoid hidden include dependencies.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/rdma/ib_verbs.h

index 0bfa3328d686ccdac7cd383e8abac4063a90e5f6..73aafd7bb503778a063bf812fb8d7e7526b7cdda 100644 (file)
@@ -45,6 +45,7 @@
 #include <linux/device.h>
 #include <linux/mm.h>
 #include <linux/dma-mapping.h>
+#include <linux/kref.h>
 
 #include <asm/atomic.h>
 #include <asm/scatterlist.h>