Ian Campbell
2012-Oct-17 08:39 UTC
[PATCH 02/10] xen: sysfs: include err.h for PTR_ERR etc
Fixes build error on ARM: drivers/xen/sys-hypervisor.c: In function ''uuid_show_fallback'': drivers/xen/sys-hypervisor.c:127:2: error: implicit declaration of function ''IS_ERR'' [-Werror=implicit-function-declaration] drivers/xen/sys-hypervisor.c:128:3: error: implicit declaration of function ''PTR_ERR'' [-Werror=implicit-function-declaration] Signed-off-by: Ian Campbell <ian.campbell@citrix.com> --- drivers/xen/sys-hypervisor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c index 5e5ad7e..66a0a14 100644 --- a/drivers/xen/sys-hypervisor.c +++ b/drivers/xen/sys-hypervisor.c @@ -11,6 +11,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/kobject.h> +#include <linux/err.h> #include <asm/xen/hypervisor.h> #include <asm/xen/hypercall.h> -- 1.7.2.5
Stefano Stabellini
2012-Oct-17 16:59 UTC
Re: [PATCH 02/10] xen: sysfs: include err.h for PTR_ERR etc
On Wed, 17 Oct 2012, Ian Campbell wrote:> Fixes build error on ARM: > drivers/xen/sys-hypervisor.c: In function ''uuid_show_fallback'': > drivers/xen/sys-hypervisor.c:127:2: error: implicit declaration of function ''IS_ERR'' [-Werror=implicit-function-declaration] > drivers/xen/sys-hypervisor.c:128:3: error: implicit declaration of function ''PTR_ERR'' [-Werror=implicit-function-declaration] > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>> drivers/xen/sys-hypervisor.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c > index 5e5ad7e..66a0a14 100644 > --- a/drivers/xen/sys-hypervisor.c > +++ b/drivers/xen/sys-hypervisor.c > @@ -11,6 +11,7 @@ > #include <linux/kernel.h> > #include <linux/module.h> > #include <linux/kobject.h> > +#include <linux/err.h> > > #include <asm/xen/hypervisor.h> > #include <asm/xen/hypercall.h> > -- > 1.7.2.5 >