Patchwork [1/1] (pre-stable) sparc: sigutil: Include <linux/errno.h>

login
register
mail settings
Submitter Brad Figg
Date Dec. 2, 2011, 6:36 p.m.
Message ID <1322850973-5368-2-git-send-email-brad.figg@canonical.com>
Download mbox | patch
Permalink /patch/128933/
State New
Headers show

Comments

Brad Figg - Dec. 2, 2011, 6:36 p.m.
From: Ben Hutchings <ben@decadent.org.uk>

BugLink: http://bugs.launchpad.net/bugs/899311

This file introduced in 2.6.32.47 currently fails to compile:

arch/sparc/kernel/sigutil_64.c: In function 'save_fpu_state':
arch/sparc/kernel/sigutil_64.c:25: error: 'EFAULT' undeclared (first use in this function)

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9ff03b392fa34f6d549fbb56bf05d8a0483aa818)
Signed-off-by: Brad Figg <brad.figg@canonical.com>
---
 arch/sparc/kernel/sigutil_64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Tim Gardner - Dec. 2, 2011, 6:38 p.m.
On 12/02/2011 11:36 AM, Brad Figg wrote:
> From: Ben Hutchings<ben@decadent.org.uk>
>
> BugLink: http://bugs.launchpad.net/bugs/899311
>
> This file introduced in 2.6.32.47 currently fails to compile:
>
> arch/sparc/kernel/sigutil_64.c: In function 'save_fpu_state':
> arch/sparc/kernel/sigutil_64.c:25: error: 'EFAULT' undeclared (first use in this function)
>
> Signed-off-by: Ben Hutchings<ben@decadent.org.uk>
> Signed-off-by: David S. Miller<davem@davemloft.net>
> (cherry picked from commit 9ff03b392fa34f6d549fbb56bf05d8a0483aa818)
> Signed-off-by: Brad Figg<brad.figg@canonical.com>
> ---
>   arch/sparc/kernel/sigutil_64.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/sparc/kernel/sigutil_64.c b/arch/sparc/kernel/sigutil_64.c
> index 6edc4e5..06a69b4 100644
> --- a/arch/sparc/kernel/sigutil_64.c
> +++ b/arch/sparc/kernel/sigutil_64.c
> @@ -2,6 +2,7 @@
>   #include<linux/types.h>
>   #include<linux/thread_info.h>
>   #include<linux/uaccess.h>
> +#include<linux/errno.h>
>
>   #include<asm/sigcontext.h>
>   #include<asm/fpumacro.h>
Brad Figg - Dec. 2, 2011, 7:09 p.m.
On 12/02/2011 10:36 AM, Brad Figg wrote:
> From: Ben Hutchings<ben@decadent.org.uk>
>
> BugLink: http://bugs.launchpad.net/bugs/899311
>
> This file introduced in 2.6.32.47 currently fails to compile:
>
> arch/sparc/kernel/sigutil_64.c: In function 'save_fpu_state':
> arch/sparc/kernel/sigutil_64.c:25: error: 'EFAULT' undeclared (first use in this function)
>
> Signed-off-by: Ben Hutchings<ben@decadent.org.uk>
> Signed-off-by: David S. Miller<davem@davemloft.net>
> (cherry picked from commit 9ff03b392fa34f6d549fbb56bf05d8a0483aa818)
> Signed-off-by: Brad Figg<brad.figg@canonical.com>
> ---
>   arch/sparc/kernel/sigutil_64.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/sparc/kernel/sigutil_64.c b/arch/sparc/kernel/sigutil_64.c
> index 6edc4e5..06a69b4 100644
> --- a/arch/sparc/kernel/sigutil_64.c
> +++ b/arch/sparc/kernel/sigutil_64.c
> @@ -2,6 +2,7 @@
>   #include<linux/types.h>
>   #include<linux/thread_info.h>
>   #include<linux/uaccess.h>
> +#include<linux/errno.h>
>
>   #include<asm/sigcontext.h>
>   #include<asm/fpumacro.h>

Patch

diff --git a/arch/sparc/kernel/sigutil_64.c b/arch/sparc/kernel/sigutil_64.c
index 6edc4e5..06a69b4 100644
--- a/arch/sparc/kernel/sigutil_64.c
+++ b/arch/sparc/kernel/sigutil_64.c
@@ -2,6 +2,7 @@ 
 #include <linux/types.h>
 #include <linux/thread_info.h>
 #include <linux/uaccess.h>
+#include <linux/errno.h>
 
 #include <asm/sigcontext.h>
 #include <asm/fpumacro.h>