All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc: sigutil: Include <linux/errno.h>
@ 2011-11-13  7:20 Ben Hutchings
  2011-11-14  5:03 ` David Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ben Hutchings @ 2011-11-13  7:20 UTC (permalink / raw)
  To: sparclinux

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>
---
I assume this works in 3.1 due to indirect inclusion of <linux/errno.h>,
but it doesn't in 2.6.32.  It might be worth applying this in mainline
anyway, to avoid that assumption.

Ben.

 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>
-- 
1.7.7



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sparc: sigutil: Include <linux/errno.h>
  2011-11-13  7:20 [PATCH] sparc: sigutil: Include <linux/errno.h> Ben Hutchings
@ 2011-11-14  5:03 ` David Miller
  2011-11-16 16:41 ` Greg KH
  2011-11-16 18:27 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-11-14  5:03 UTC (permalink / raw)
  To: sparclinux

From: Ben Hutchings <ben@decadent.org.uk>
Date: Sun, 13 Nov 2011 07:20:04 +0000

> 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>
> ---
> I assume this works in 3.1 due to indirect inclusion of <linux/errno.h>,
> but it doesn't in 2.6.32.  It might be worth applying this in mainline
> anyway, to avoid that assumption.

Applied, thanks Ben.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sparc: sigutil: Include <linux/errno.h>
  2011-11-13  7:20 [PATCH] sparc: sigutil: Include <linux/errno.h> Ben Hutchings
  2011-11-14  5:03 ` David Miller
@ 2011-11-16 16:41 ` Greg KH
  2011-11-16 18:27 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2011-11-16 16:41 UTC (permalink / raw)
  To: sparclinux

On Mon, Nov 14, 2011 at 12:03:39AM -0500, David Miller wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> Date: Sun, 13 Nov 2011 07:20:04 +0000
> 
> > 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>
> > ---
> > I assume this works in 3.1 due to indirect inclusion of <linux/errno.h>,
> > but it doesn't in 2.6.32.  It might be worth applying this in mainline
> > anyway, to avoid that assumption.
> 
> Applied, thanks Ben.

David, should I queue this up in the .32-stable tree now to fix the
build problem that we have at the moment?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sparc: sigutil: Include <linux/errno.h>
  2011-11-13  7:20 [PATCH] sparc: sigutil: Include <linux/errno.h> Ben Hutchings
  2011-11-14  5:03 ` David Miller
  2011-11-16 16:41 ` Greg KH
@ 2011-11-16 18:27 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-11-16 18:27 UTC (permalink / raw)
  To: sparclinux

From: Greg KH <greg@kroah.com>
Date: Wed, 16 Nov 2011 08:41:25 -0800

> On Mon, Nov 14, 2011 at 12:03:39AM -0500, David Miller wrote:
>> From: Ben Hutchings <ben@decadent.org.uk>
>> Date: Sun, 13 Nov 2011 07:20:04 +0000
>> 
>> > 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>
>> > ---
>> > I assume this works in 3.1 due to indirect inclusion of <linux/errno.h>,
>> > but it doesn't in 2.6.32.  It might be worth applying this in mainline
>> > anyway, to avoid that assumption.
>> 
>> Applied, thanks Ben.
> 
> David, should I queue this up in the .32-stable tree now to fix the
> build problem that we have at the moment?

Yes, please do.  Thanks Greg.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-16 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13  7:20 [PATCH] sparc: sigutil: Include <linux/errno.h> Ben Hutchings
2011-11-14  5:03 ` David Miller
2011-11-16 16:41 ` Greg KH
2011-11-16 18:27 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.