linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: "Borislav Petkov" <bp@alien8.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Tony Luck" <tony.luck@intel.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Andy Lutomirski" <luto@amacapital.net>,
	"Matt Fleming" <matt@codeblueprint.co.uk>,
	"Jörg Rödel" <joro@8bytes.org>, "Jiri Kosina" <jkosina@suse.cz>,
	"Jeff Mahoney" <jeffm@suse.com>, "Michal Hocko" <mhocko@suse.cz>,
	"Vlastimil Babka" <vbabka@suse.cz>,
	"Andre Przywara" <andre@andrep.de>,
	"Andreas Herrmann" <herrmann.der.user@gmail.com>,
	"Robert Richter" <rric@kernel.org>,
	"Richard Weinberger" <richard@nod.at>
Subject: [PATCH] x86: Drop 32-bit support ... finally.
Date: Wed,  1 Apr 2015 10:15:58 +0200	[thread overview]
Message-ID: <1427876158-18323-1-git-send-email-bp@alien8.de> (raw)

From: Borislav Petkov <bp@suse.de>

Today, April 1st 2015, marks almost 15 years since the introduction of
the 64-bit extensions to the x86 architecture. And frankly, 15 years was
a graceful period enough for people to move to 64-bit. Therefore, today,
I'm removing 32-bit support from x86 Linux. And it was about friggin'
time...

32-bit code is old, full of nasty hacks and keeps always breaking when
we do our shiny new features for 64-bit. And frankly, no one cares
about 32-bit. If you do, then you're wrong and you need to get with the
program. Go out, take a deep breath, go for a walk and the first thing
you do when you come back is *take* *a* *look* at the goddam calendar.
Time to say goodbye to your old 32-bit sand. Get a 64-bit processor.
Live a little. Come to the real world.

This is a minimal patch which prevents from building a 32-bit kernel
only. Removing of the rest of the crazy ifdeffery and potential cleanups
needs to come later, in nice clean patches. This is especially true for
you, you patch count wankers. Restrain yourself!

Signed-off-by: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Jörg Rödel <joro@8bytes.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Andre Przywara <andre@andrep.de>
Cc: Andreas Herrmann <herrmann.der.user@gmail.com>
Cc: Robert Richter <rric@kernel.org>
Cc: Richard Weinberger <richard@nod.at>
---
 Makefile         | 3 ---
 arch/x86/Kconfig | 9 ++-------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index da36a3be7969..0a907dd934b6 100644
--- a/Makefile
+++ b/Makefile
@@ -256,9 +256,6 @@ UTS_MACHINE 	:= $(ARCH)
 SRCARCH 	:= $(ARCH)
 
 # Additional ARCH settings for x86
-ifeq ($(ARCH),i386)
-        SRCARCH := x86
-endif
 ifeq ($(ARCH),x86_64)
         SRCARCH := x86
 endif
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 8db84b0e5bbd..9fed79e3ed39 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1,13 +1,8 @@
-# Select 32 or 64 bit
 config 64BIT
-	bool "64-bit kernel" if ARCH = "x86"
-	default ARCH != "i386"
-	---help---
-	  Say yes to build a 64-bit kernel - formerly known as x86_64
-	  Say no to build a 32-bit kernel - formerly known as i386
+	def_bool y
 
 config X86_32
-	def_bool y
+	def_bool n
 	depends on !64BIT
 	select CLKSRC_I8253
 	select HAVE_UID16
-- 
2.3.3


             reply	other threads:[~2015-04-01  8:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01  8:15 Borislav Petkov [this message]
2015-04-01  8:21 ` [PATCH] x86: Drop 32-bit support ... finally Borislav Petkov
2015-04-01  8:45   ` Ingo Molnar
2015-04-01  8:56   ` Robert Richter
2015-04-01  9:38     ` Robert Richter
2015-04-01 17:28       ` Andi Kleen
2015-04-01 11:58     ` Ingo Molnar
2015-04-01 14:41       ` One Thousand Gnomes
2015-04-01 15:41         ` Theodore Ts'o
2015-04-01 15:46           ` Luck, Tony
2015-04-01 15:50             ` Dave Jones

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=1427876158-18323-1-git-send-email-bp@alien8.de \
    --to=bp@alien8.de \
    --cc=andre@andrep.de \
    --cc=herrmann.der.user@gmail.com \
    --cc=hpa@zytor.com \
    --cc=jeffm@suse.com \
    --cc=jkosina@suse.cz \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=matt@codeblueprint.co.uk \
    --cc=mhocko@suse.cz \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=richard@nod.at \
    --cc=rostedt@goodmis.org \
    --cc=rric@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=vbabka@suse.cz \
    /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).