[ofa-general] [PATCH] net/mlx4: include linux/mutex.h from mlx4.h

Michael S. Tsirkin mst at dev.mellanox.co.il
Sun Jun 10 23:09:42 PDT 2007


mlx4.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
to do 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/net/mlx4/mlx4.h
===================================================================
--- ofed_kernel.orig/drivers/net/mlx4/mlx4.h	2007-05-29 14:50:26.000000000 +0300
+++ ofed_kernel/drivers/net/mlx4/mlx4.h	2007-06-11 09:07:36.000000000 +0300
@@ -37,6 +37,7 @@
 #ifndef MLX4_H
 #define MLX4_H
 
+#include <linux/mutex.h>
 #include <linux/radix-tree.h>
 
 #include <linux/mlx4/device.h>

-- 
MST



More information about the general mailing list