IB: Include <linux/kref.h> explicitly in <rdma/ib_verbs.h>
Michael S. Tsirkin [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 0bfa332..73aafd7 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>