Skip to contentSkip to conversation

tpm: xen-tpmfront: fix missing declaration of xen_domain

PATCH In review Rob Herring 3 participants 3 messages Oct 7, 2013 – Oct 8, 2013 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: xen-tpmfront: fix missing declaration of xen_domain

From: Rob Herring <[email protected]>

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.

Cc Leonidas Da Silva Barbosa <[email protected]>
Cc Ashley Lai <[email protected]>
Cc Rajiv Andrade <[email protected]>
Cc Marcel Selhorst <[email protected]>
Cc Sirrix AG <[email protected]>
---
 drivers/char/tpm/xen-tpmfront.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/tpm/xen-tpmfront.c +1 -0
index 06189e5..94c280d 100644
@@ -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>
Signature · 1 line
1.8.1.2
#1 lore raw
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

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.

Quoted 7 lines
Cc Leonidas Da Silva Barbosa <[email protected]>
Cc Ashley Lai <[email protected]>
Cc Rajiv Andrade <[email protected]>
Cc Marcel Selhorst <[email protected]>
Cc Sirrix AG <[email protected]>

Thanks, added to my queue

Quoted 18 lines
 drivers/char/tpm/xen-tpmfront.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/tpm/xen-tpmfront.c +1 -0
index 06189e5..94c280d 100644
@@ -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>
Signature · 1 line
1.8.1.2