[PATCH] tpm: xen-tpmfront: fix missing declaration of xen_domain

From: Rob Herring
Date: Mon Oct 07 2013 - 17:46:15 EST


From: Rob Herring <rob.herring@xxxxxxxxxxx>

xen-tpmfront fails to build on arm64 with the following error:

drivers/char/tpm/xen-tpmfront.c: In function âxen_tpmfront_initâ:
drivers/char/tpm/xen-tpmfront.c:422:2: error: implicit declaration of function âxen_domainâ [-Werror=implicit-function-declaration]

Add include of xen/xen.h to fix this.

Signed-off-by: Rob Herring <rob.herring@xxxxxxxxxxx>
Cc: Leonidas Da Silva Barbosa <leosilva@xxxxxxxxxxxxxxxxxx>
Cc: Ashley Lai <ashley@xxxxxxxxxxxxx>
Cc: Rajiv Andrade <mail@xxxxxxxxxx>
Cc: Marcel Selhorst <tpmdd@xxxxxxxxxxxx>
Cc: Sirrix AG <tpmdd@xxxxxxxxxx>
Cc: tpmdd-devel@xxxxxxxxxxxxxxxxxxxxx
---
drivers/char/tpm/xen-tpmfront.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c
index 06189e5..94c280d 100644
--- a/drivers/char/tpm/xen-tpmfront.c
+++ b/drivers/char/tpm/xen-tpmfront.c
@@ -10,6 +10,7 @@
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/interrupt.h>
+#include <xen/xen.h>
#include <xen/events.h>
#include <xen/interface/io/tpmif.h>
#include <xen/grant_table.h>
--
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/