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; Tue, 21 Apr 2009
 09:29:55 -0700
Received: from psmtp.com ([64.18.0.36]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Tue, 21 Apr 2009 09:29:55 -0700
Received: from source ([213.58.128.207]) by exprod5mx190.postini.com
 ([64.18.4.11]) with SMTP;	Tue, 21 Apr 2009 12:29:55 EDT
Received: from localhost.localdomain ([127.0.0.1]:64482 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20031993AbZDULor
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Tue, 21 Apr 2009 12:44:47 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 21 Apr 2009 12:44:30
 +0100 (BST)
Received: from elvis.franken.de ([193.175.24.41]:2695 "EHLO elvis.franken.de")
	by ftp.linux-mips.org with ESMTP id S20026017AbZDULoW (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Tue, 21 Apr 2009 12:44:22 +0100
Received: from uucp (helo=solo.franken.de)	by elvis.franken.de with
 local-bsmtp (Exim 3.36 #1)	id 1LwEOg-00011A-00; Tue, 21 Apr 2009 13:44:18
 +0200
Received: by solo.franken.de (Postfix, from userid 1000)	id B493CC3318; Tue,
 21 Apr 2009 13:44:13 +0200 (CEST)
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
CC: "torvalds@linux-foundation.org" <torvalds@linux-foundation.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Tue, 21 Apr 2009 04:44:13 -0700
Subject: [PATCH] Fix SYSCALL_ALIAS for older MIPS assembler
Thread-Topic: [PATCH] Fix SYSCALL_ALIAS for older MIPS assembler
Thread-Index: AcnCnmf7xev8iMXMT5yYPOM7vZNtxw==
Message-ID: <20090421114413.B493CC3318@solo.franken.de>
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: 21 Apr 2009 16:29:55.0696 (UTC)
 FILETIME=[67AFB700:01C9C29E]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:87.67954/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: 0/0/0.00/0
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: eVdbq+mnWVAF7A4FqkG0Lg==
x-list: linux-mips
x-archive-position: 22396
x-ecartis-version: Ecartis v1.0.0
x-original-sender: tsbogend@alpha.franken.de
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Older MIPS assembler don't support .set for defining aliases.
Using =3D works for old and new assembers.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
---

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

diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index dabe4ad..40617c1 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -148,7 +148,7 @@ struct old_linux_dirent;
 	asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n"	\
 	     "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
 #else
-#ifdef CONFIG_ALPHA
+#if defined(CONFIG_ALPHA) || defined(CONFIG_MIPS)
 #define SYSCALL_ALIAS(alias, name)					\
 	asm ( #alias " =3D " #name "\n\t.globl " #alias)
 #else

