linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: linux-arch@vger.kernel.org
Subject: Re: RFC: remove ibcs2/PER_SVR4?
Date: Wed, 1 Oct 2008 17:08:27 +0100	[thread overview]
Message-ID: <20081001160827.GA13102@linux-mips.org> (raw)
In-Reply-To: <1222850741.32562.4.camel@localhost>

On Wed, Oct 01, 2008 at 10:45:41AM +0200, Martin Schwidefsky wrote:

> Greetings,
> I stumbled across SET_PERSONALITY and the ibcs2/PER_SVR4 personality once
> more. I never really understood why it is there and with the current code
> it is in fact completely unused. The minimal patch I will do is the one
> below, it just removes ibcs2/PER_SVR4 for s390. I think the same could be
> done for all architectures and the SET_PERSONALITY macro could drop the
> ibcs2 argument. Before I go ahead and do a patch across all architectures:
> does anybody out there still needs ibcs2/PER_SVR4?

Doesn't look like it; all invocations of SET_PERSONALITY are passing 0 for
the ibcs2 argument.  So I think the 2nd argument should go entirely.  MIPS
segment against linux-next is below.  As you may notice it's actually a
bug fix, there was a missing else statement that didn't bite bite anybody
thanks to the unusedness :-)

  Ralf

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

diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h
index f69f7ac..3d15e02 100644
--- a/arch/mips/include/asm/elf.h
+++ b/arch/mips/include/asm/elf.h
@@ -249,8 +249,6 @@ extern struct mips_abi mips_abi_n32;
 
 #define SET_PERSONALITY(ex, ibcs2)					\
 do {									\
-	if (ibcs2)							\
-		set_personality(PER_SVR4);				\
 	set_personality(PER_LINUX);					\
 									\
 	current->thread.abi = &mips_abi;				\
@@ -306,9 +304,7 @@ do {									\
 	else								\
 		current->thread.abi = &mips_abi;			\
 									\
-	if (ibcs2)							\
-		set_personality(PER_SVR4);				\
-	else if (current->personality != PER_LINUX32)			\
+	if (current->personality != PER_LINUX32)			\
 		set_personality(PER_LINUX);				\
 } while (0)
 

  reply	other threads:[~2008-10-01 16:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01  8:45 RFC: remove ibcs2/PER_SVR4? Martin Schwidefsky
2008-10-01 16:08 ` Ralf Baechle [this message]
2008-10-01 16:17   ` Martin Schwidefsky
2008-10-03 20:21   ` Martin Schwidefsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081001160827.GA13102@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).