Skip to contentSkip to conversation

include linux/mutex.h from attribute_container.c

PATCH New Michael S. Tsirkin 1 participant 1 message Jun 10, 2007 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

Does this make sense?

drivers/base/attribute_container.c +1 -0
Index: ofed_kernel/drivers/base/attribute_container.c
===================================================================
@@ -18,6 +18,7 @@
 #include <linux/slab.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/mutex.h>
 
 #include "base.h"
 
Signature · 1 line
MST