[ofa-general] [PATCH trivial] IB/mlx4: include linux/mutex.h from mlx4_ib.h

Michael S. Tsirkin mst at dev.mellanox.co.il
Sun Jun 10 22:56:10 PDT 2007


mlx4_ib.h uses struct mutex, so while
linux/mutex.h seems to be pulled in indirectly
by one of the headers it includes, the right thing
is to include linux/mutex.h directly.

Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>

---

Roland, can you queue this for upstream pls?

Index: ofed_kernel/drivers/infiniband/hw/mlx4/mlx4_ib.h
===================================================================
--- ofed_kernel.orig/drivers/infiniband/hw/mlx4/mlx4_ib.h	2007-05-29 14:50:06.000000000 +0300
+++ ofed_kernel/drivers/infiniband/hw/mlx4/mlx4_ib.h	2007-06-11 08:49:13.000000000 +0300
@@ -35,6 +35,7 @@
 
 #include <linux/compiler.h>
 #include <linux/list.h>
+#include <linux/mutex.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_umem.h>
-- 
MST



More information about the general mailing list