tpm: xen-tpmfront: fix missing declaration of xen_domain
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.
--- drivers/char/tpm/xen-tpmfront.c | 1 + 1 file changed, 1 insertion(+)
drivers/char/tpm/xen-tpmfront.c +1 -0
@@ -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
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.hto fix this.
Quoted 7 lines
Signed-off-by Rob Herring <[email protected]>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@@ -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
Quoted 4 lines · Rob Herring
From: Rob Herring <[email protected]>
xen-tpmfront fails to build on arm64 with the following error:
Thanks,
--Ashley Lai