2007-06-10 19:39:18

by Michael S. Tsirkin

[permalink] [raw]
Subject: [PATCH trivial] include linux/mutex.h from attribute_container.c

attribute_container.c uses DEFINE_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 <[email protected]>

---

Does this make sense?

Index: ofed_kernel/drivers/base/attribute_container.c
===================================================================
--- ofed_kernel.orig/drivers/base/attribute_container.c 2007-05-29 14:49:57.000000000 +0300
+++ ofed_kernel/drivers/base/attribute_container.c 2007-06-10 21:29:36.000000000 +0300
@@ -18,6 +18,7 @@
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/module.h>
+#include <linux/mutex.h>

#include "base.h"


--
MST