Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
@ 2009-04-10 18:41 David Daney
  2009-04-10 19:16 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: David Daney @ 2009-04-10 18:41 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

The recent change that added #include <linux/seccomp.h> breaks
(because EINVAL is not defined) when building
arch/mips/kernel/asm-offsets.s if CONFIG_SECCOMP is not defined.
Including errno.h fixes the problem.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/include/asm/compat.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h
index 6c5b409..b88434e 100644
--- a/arch/mips/include/asm/compat.h
+++ b/arch/mips/include/asm/compat.h
@@ -3,6 +3,7 @@
 /*
  * Architecture specific compatibility types
  */
+#include <linux/errno.h>
 #include <linux/seccomp.h>
 #include <linux/thread_info.h>
 #include <linux/types.h>
-- 
1.6.0.6

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

* Re: [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
  2009-04-10 18:41 [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h David Daney
@ 2009-04-10 19:16 ` Ralf Baechle
  2009-04-11 14:31   ` Atsushi Nemoto
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2009-04-10 19:16 UTC (permalink / raw)
  To: David Daney; +Cc: linux-mips

On Fri, Apr 10, 2009 at 11:41:35AM -0700, David Daney wrote:

> The recent change that added #include <linux/seccomp.h> breaks
> (because EINVAL is not defined) when building
> arch/mips/kernel/asm-offsets.s if CONFIG_SECCOMP is not defined.
> Including errno.h fixes the problem.

NAK, <linux/seccomp.h> should include <linux/errno.h>.

  Ralf

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

* Re: [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
  2009-04-10 19:16 ` Ralf Baechle
@ 2009-04-11 14:31   ` Atsushi Nemoto
  2009-04-16 16:02     ` David Daney
  0 siblings, 1 reply; 5+ messages in thread
From: Atsushi Nemoto @ 2009-04-11 14:31 UTC (permalink / raw)
  To: ralf; +Cc: ddaney, linux-mips

On Fri, 10 Apr 2009 12:16:11 -0700, Ralf Baechle <ralf@linux-mips.org> wrote:
> On Fri, Apr 10, 2009 at 11:41:35AM -0700, David Daney wrote:
> 
> > The recent change that added #include <linux/seccomp.h> breaks
> > (because EINVAL is not defined) when building
> > arch/mips/kernel/asm-offsets.s if CONFIG_SECCOMP is not defined.
> > Including errno.h fixes the problem.
> 
> NAK, <linux/seccomp.h> should include <linux/errno.h>.

Then how about this?

------------------------------------------------------
Subject: [PATCH] Do not include seccomp.h from compat.h
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

The compat.h does not need seccomp.h since TIF_32BIT was moved to
thread_info.h

This fixes a build error of 64-bit kernel without CONFIG_SECCOMP.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/include/asm/compat.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h
index 6c5b409..f58aed3 100644
--- a/arch/mips/include/asm/compat.h
+++ b/arch/mips/include/asm/compat.h
@@ -3,7 +3,6 @@
 /*
  * Architecture specific compatibility types
  */
-#include <linux/seccomp.h>
 #include <linux/thread_info.h>
 #include <linux/types.h>
 #include <asm/page.h>

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

* Re: [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
  2009-04-11 14:31   ` Atsushi Nemoto
@ 2009-04-16 16:02     ` David Daney
  2009-04-18  9:06       ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: David Daney @ 2009-04-16 16:02 UTC (permalink / raw)
  To: Atsushi Nemoto, ralf; +Cc: linux-mips

Atsushi Nemoto wrote:
> On Fri, 10 Apr 2009 12:16:11 -0700, Ralf Baechle <ralf@linux-mips.org> wrote:
>> On Fri, Apr 10, 2009 at 11:41:35AM -0700, David Daney wrote:
>>
>>> The recent change that added #include <linux/seccomp.h> breaks
>>> (because EINVAL is not defined) when building
>>> arch/mips/kernel/asm-offsets.s if CONFIG_SECCOMP is not defined.
>>> Including errno.h fixes the problem.
>> NAK, <linux/seccomp.h> should include <linux/errno.h>.
> 
> Then how about this?
> 
> ------------------------------------------------------
> Subject: [PATCH] Do not include seccomp.h from compat.h
> From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
> 
> The compat.h does not need seccomp.h since TIF_32BIT was moved to
> thread_info.h
> 
> This fixes a build error of 64-bit kernel without CONFIG_SECCOMP.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

Signed-off-by: David Daney <ddaney@caviumnetworks.com>

> ---
>  arch/mips/include/asm/compat.h |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h
> index 6c5b409..f58aed3 100644
> --- a/arch/mips/include/asm/compat.h
> +++ b/arch/mips/include/asm/compat.h
> @@ -3,7 +3,6 @@
>  /*
>   * Architecture specific compatibility types
>   */
> -#include <linux/seccomp.h>
>  #include <linux/thread_info.h>
>  #include <linux/types.h>
>  #include <asm/page.h>
> 
> 

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

* Re: [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h
  2009-04-16 16:02     ` David Daney
@ 2009-04-18  9:06       ` Ralf Baechle
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2009-04-18  9:06 UTC (permalink / raw)
  To: David Daney; +Cc: Atsushi Nemoto, linux-mips

On Thu, Apr 16, 2009 at 09:02:00AM -0700, David Daney wrote:

>> Subject: [PATCH] Do not include seccomp.h from compat.h
>> From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
>>
>> The compat.h does not need seccomp.h since TIF_32BIT was moved to
>> thread_info.h
>>
>> This fixes a build error of 64-bit kernel without CONFIG_SECCOMP.
>>
>> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>

Acked-by: you meant?  Eiher way, applied and I'll also send out a patch to
include <linux/errno.h> into <linux/seccmp.h>.

  Ralf

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

end of thread, other threads:[~2009-04-18  9:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-10 18:41 [PATCH] MIPS: Include linux/errno.h from arch/mips/include/asm/compat.h David Daney
2009-04-10 19:16 ` Ralf Baechle
2009-04-11 14:31   ` Atsushi Nemoto
2009-04-16 16:02     ` David Daney
2009-04-18  9:06       ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox