Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Sat, 11 Apr 2009
 10:32:00 -0700
Received: from psmtp.com ([64.18.0.44]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Sat, 11 Apr 2009 10:32:00 -0700
Received: from source ([213.58.128.207]) by exprod5mx198.postini.com
 ([64.18.4.10]) with SMTP;	Sat, 11 Apr 2009 09:32:00 PST
Received: from localhost.localdomain ([127.0.0.1]:10960 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20026592AbZDKOcY
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Sat, 11 Apr 2009 15:32:24 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 11 Apr 2009 15:32:07
 +0100 (BST)
Received: from mba.ocn.ne.jp ([122.1.235.107]:58083 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S20023535AbZDKOcB (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Sat, 11 Apr 2009 15:32:01 +0100
Received: from localhost (p7156-ipad205funabasi.chiba.ocn.ne.jp
 [222.146.102.156])	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP	id C6587A828;
 Sat, 11 Apr 2009 23:31:54 +0900 (JST)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: "ralf@linux-mips.org" <ralf@linux-mips.org>
CC: "ddaney@caviumnetworks.com" <ddaney@caviumnetworks.com>,
	"linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sat, 11 Apr 2009 07:31:50 -0700
Subject: Re: [PATCH] MIPS: Include linux/errno.h from
 arch/mips/include/asm/compat.h
Thread-Topic: [PATCH] MIPS: Include linux/errno.h from
 arch/mips/include/asm/compat.h
Thread-Index: Acm6y2v3u8XDXNHKT32E3+r28aTdwA==
Message-ID: <20090411.233150.25909696.anemo@mba.ocn.ne.jp>
References: <1239388895-27305-1-git-send-email-ddaney@caviumnetworks.com>
	<20090410191611.GB23582@linux-mips.org>
In-Reply-To: <20090410191611.GB23582@linux-mips.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 11 Apr 2009 17:32:00.0538 (UTC)
 FILETIME=[6BBBFFA0:01C9BACB]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:99.90000/99.90000 CV: 8.2367 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 0/0/0.00/0
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: ukCQ8OYrF4jImYp+vFyLeg==
x-list: linux-mips
x-archive-position: 22329
x-ecartis-version: Ecartis v1.0.0
x-original-sender: anemo@mba.ocn.ne.jp
x-fingerprint: 6ACA 1623 39BD 9A94 9B1A  B746 CA77 FE94 2874 D52F
x-pgp-public-key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

On Fri, 10 Apr 2009 12:16:11 -0700, Ralf Baechle <ralf@linux-mips.org> wrot=
e:
> On Fri, Apr 10, 2009 at 11:41:35AM -0700, David Daney wrote:
>=20
> > 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.
>=20
> 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>

