Skip to contentSkip to conversation

IA64: Fix IS_ERR() Compilation Errors

PATCH In review Fenghua Yu 2 participants 2 messages Jul 8, 2009 – Jul 9, 2009

lore
Share & tools
lore

Fenghua Yu

author
#0 lore raw

PATCH 1/1 IA64: Fix IS_ERR() Compilation Errors

Fix ia64 IS_ERR() compilation errors.

When building ia64 kernel with CONFIG_XEN_SYS_HYPERVISOR, compiler reports errors:

drivers/xen/sys-hypervisor.c: In function ‘uuid_show’:
drivers/xen/sys-hypervisor.c:125: error: implicit declaration of function ‘IS_ERR’ drivers/xen/sys-hypervisor.c:126: error: implicit declaration of function ‘PTR_ERR’

This patch fixes the errors.

---
 arch/ia64/include/asm/xen/hypervisor.h |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/include/asm/xen/hypervisor.h +1 -0
index e425227..88afb54 100644
@@ -33,6 +33,7 @@
 #ifndef _ASM_IA64_XEN_HYPERVISOR_H
 #define _ASM_IA64_XEN_HYPERVISOR_H
 
+#include <linux/err.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/version.h>	/* to compile feature.c */
 #include <xen/features.h>		/* to comiple xen-netfront.c */
Acked-by on v1 1/1
#1 lore raw

Thank you for fixing it.

Quoted 29 lines · Fenghua Yu

Fix ia64 IS_ERR() compilation errors.

When building ia64 kernel with CONFIG_XEN_SYS_HYPERVISOR, compiler reports errors:

drivers/xen/sys-hypervisor.c: In function ‘uuid_show’:
drivers/xen/sys-hypervisor.c:125: error: implicit declaration of function ‘IS_ERR’ drivers/xen/sys-hypervisor.c:126: error: implicit declaration of function ‘PTR_ERR’

This patch fixes the errors.

---
 arch/ia64/include/asm/xen/hypervisor.h |    1 +
 1 file changed, 1 insertion(+)
arch/ia64/include/asm/xen/hypervisor.h +1 -0
index e425227..88afb54 100644
@@ -33,6 +33,7 @@
 #ifndef _ASM_IA64_XEN_HYPERVISOR_H
 #define _ASM_IA64_XEN_HYPERVISOR_H
 
+#include <linux/err.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/version.h>	/* to compile feature.c */
 #include <xen/features.h>		/* to comiple xen-netfront.c */
Signature · 1 line
yamahata