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; Thu, 12 Mar 2009
 03:02:04 -0700
Received: from psmtp.com ([64.18.0.48]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Thu, 12 Mar 2009 03:02:03 -0700
Received: from source ([213.58.128.207]) by exprod5mx253.postini.com
 ([64.18.4.13]) with SMTP;	Thu, 12 Mar 2009 10:02:03 GMT
Received: from localhost.localdomain ([127.0.0.1]:52417 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S21367609AbZCLKBm
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Thu, 12 Mar 2009 10:01:42 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 12 Mar 2009 10:01:25
 +0000 (GMT)
Received: from xylophone.i-cable.com ([203.83.115.99]:39649 "HELO
	xylophone.i-cable.com") by ftp.linux-mips.org with SMTP	id S20808465AbZCLKBT
 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Thu, 12 Mar 2009 10:01:19 +0000
Received: (qmail 2049 invoked by uid 508); 12 Mar 2009 10:01:12 -0000
Received: from 203.83.114.121 by xylophone (envelope-from
 <r0bertz@gentoo.org>, uid 505) with qmail-scanner-1.25  (clamdscan:
 0.93.3/7737.   Clear:RC:1(203.83.114.121):.  Processed in 0.18152 secs); 12
 Mar 2009 10:01:12 -0000
Received: from ip114121.hkicable.com (HELO silicon.i-cable.com)
 (203.83.114.121)  by 0 with SMTP; 12 Mar 2009 10:01:12 -0000
Received: from localhost.localdomain (cm222-167-208-75.hkcable.com.hk
 [222.167.208.75])	by silicon.i-cable.com (8.13.5/8.13.5) with ESMTP id
 n2CA10tK023953;	Thu, 12 Mar 2009 18:01:12 +0800 (HKT)
From: Zhang Le <r0bertz@gentoo.org>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
CC: Zhang Le <r0bertz@gentoo.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Thu, 12 Mar 2009 03:00:50 -0700
Subject: [PATCH] MIPS: fix TIF_32BIT undefined problem when seccomp is
 disabled
Thread-Topic: [PATCH] MIPS: fix TIF_32BIT undefined problem when seccomp is
 disabled
Thread-Index: Acmi+ZmuHaPXLsBvRSy0nALQou7Xiw==
Message-ID: <1236852050-22266-1-git-send-email-r0bertz@gentoo.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: 12 Mar 2009 10:02:03.0846 (UTC)
 FILETIME=[980F3660:01C9A2F9]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:75.31858/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 3/1/0.33/72
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: R5ed0ZE6m/10wB/y//aoxQ==
x-list: linux-mips
x-archive-position: 22068
x-ecartis-version: Ecartis v1.0.0
x-original-sender: r0bertz@gentoo.org
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Signed-off-by: Zhang Le <r0bertz@gentoo.org>
---
 arch/mips/include/asm/seccomp.h     |    4 ----
 arch/mips/include/asm/thread_info.h |    6 ++++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/arch/mips/include/asm/seccomp.h b/arch/mips/include/asm/seccom=
p.h
index a6772e9..ae6306e 100644
--- a/arch/mips/include/asm/seccomp.h
+++ b/arch/mips/include/asm/seccomp.h
@@ -15,8 +15,6 @@
  */
 #ifdef CONFIG_MIPS32_O32
=20
-#define TIF_32BIT TIF_32BIT_REGS
-
 #define __NR_seccomp_read_32		4003
 #define __NR_seccomp_write_32		4004
 #define __NR_seccomp_exit_32		4001
@@ -24,8 +22,6 @@
=20
 #elif defined(CONFIG_MIPS32_N32)
=20
-#define TIF_32BIT _TIF_32BIT_ADDR
-
 #define __NR_seccomp_read_32		6000
 #define __NR_seccomp_write_32		6001
 #define __NR_seccomp_exit_32		6058
diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/th=
read_info.h
index 3f76de7..676aa2a 100644
--- a/arch/mips/include/asm/thread_info.h
+++ b/arch/mips/include/asm/thread_info.h
@@ -127,6 +127,12 @@ register struct thread_info *__current_thread_info __a=
sm__("$28");
 #define TIF_LOAD_WATCH		25	/* If set, load watch registers */
 #define TIF_SYSCALL_TRACE	31	/* syscall trace active */
=20
+#ifdef CONFIG_MIPS32_O32
+#define TIF_32BIT TIF_32BIT_REGS
+#elif defined(CONFIG_MIPS32_N32)
+#define TIF_32BIT _TIF_32BIT_ADDR
+#endif /* CONFIG_MIPS32_O32 */
+
 #define _TIF_SYSCALL_TRACE	(1<<TIF_SYSCALL_TRACE)
 #define _TIF_SIGPENDING		(1<<TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED	(1<<TIF_NEED_RESCHED)
--=20
1.6.2


