From: Roland Dreier <rolandd@cisco.com>
Date: Wed, 10 Oct 2007 02:59:05 +0000 (-0700)
Subject: IB/ehca: Include <linux/mutex.h> from ehca_classes.h
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fea391039d1c4e876a164099bff475a02a29d96;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git

IB/ehca: Include <linux/mutex.h> from ehca_classes.h

ehca_classes.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@dev.mellanox.co.il>
Acked-by: Stefan Roscher <stefan.roscher@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
---

diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h
index b5e960305316..0d69f0f001d9 100644
--- a/drivers/infiniband/hw/ehca/ehca_classes.h
+++ b/drivers/infiniband/hw/ehca/ehca_classes.h
@@ -53,6 +53,7 @@ struct ehca_pd;
 struct ehca_av;
 
 #include <linux/wait.h>
+#include <linux/mutex.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_user_verbs.h>