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, 18 Apr 2009
 04:51:44 -0700
Received: from psmtp.com ([64.18.0.46]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Sat, 18 Apr 2009 04:51:43 -0700
Received: from source ([213.58.128.207]) by exprod5mx200.postini.com
 ([64.18.4.11]) with SMTP;	Sat, 18 Apr 2009 05:51:43 MDT
Received: from localhost.localdomain ([127.0.0.1]:49380 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S28643846AbZDRJbv
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Sat, 18 Apr 2009 10:31:51 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 18 Apr 2009 10:31:34
 +0100 (BST)
Received: from localhost.localdomain ([127.0.0.1]:54243 "EHLO
 h5.dl5rb.org.uk")	by ftp.linux-mips.org with ESMTP id S28575365AbZDRJbB
 (ORCPT	<rfc822;linux-mips@linux-mips.org>); Sat, 18 Apr 2009 10:31:01 +0100
Received: from h5.dl5rb.org.uk (localhost.localdomain [127.0.0.1])	by
 h5.dl5rb.org.uk (8.14.3/8.14.3) with ESMTP id n3I9Uveb017391;	Sat, 18 Apr
 2009 11:30:58 +0200
Received: (from ralf@localhost)	by h5.dl5rb.org.uk (8.14.3/8.14.3/Submit) id
 n3I9UusL017389;	Sat, 18 Apr 2009 11:30:56 +0200
From: Ralf Baechle <ralf@linux-mips.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
CC: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"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, 18 Apr 2009 02:30:56 -0700
Subject: [PATCH] <linux/seccomp.h> needs to include <linux/errno.h>.
Thread-Topic: [PATCH] <linux/seccomp.h> needs to include <linux/errno.h>.
Thread-Index: AcnAHAwIKFDbfko/SmiILt+jMIKvGg==
Message-ID: <20090418093056.GA17056@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: 18 Apr 2009 11:51:43.0716 (UTC)
 FILETIME=[0B407240:01C9C01C]
user-agent: Mutt/1.5.18 (2008-05-17)
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:69.35882/99.90000 CV: 7.8455 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 1/1/1.00/94
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: ynuDKM2Z+6tJLW4i9rvBdg==
x-list: linux-mips
x-archive-position: 22359
x-ecartis-version: Ecartis v1.0.0
x-original-sender: ralf@linux-mips.org
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

<linux/seccomp.h> uses EINVAL so should include <linux/errno.h>.  This
fixes a build error on 64-bit MIPS if CONFIG_SECCOMP is disabled.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

 include/linux/seccomp.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 262a8dc..167c333 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -21,6 +21,8 @@ extern long prctl_set_seccomp(unsigned long);
=20
 #else /* CONFIG_SECCOMP */
=20
+#include <linux/errno.h>
+
 typedef struct { } seccomp_t;
=20
 #define secure_computing(x) do { } while (0)

