Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579284

[PATCH 4/6] sparc: remove unused wp_works_ok macro

Path csiph.com!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Mathias Krause <minipli@googlemail.com>
Newsgroups linux.kernel
Subject [PATCH 4/6] sparc: remove unused wp_works_ok macro
Date Sun, 12 Feb 2017 22:20:02 +0100
Message-ID <ta9IS-2Tv-19@gated-at.bofh.it> (permalink)
References <ta9IR-2Tv-1@gated-at.bofh.it>
X-Original-To Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T9tVoBwG6lBQg/x7vkvD2Se6SbKVSk8khFhkXRQtkvc=; b=OaujwuVgnKt6+YjXfG2Ob9pz5JZri5JfahQo0OcwWnn5JA+3dhv/z9pWg2AsgiPTcO 4iuyL7YIAS7jyE95dpV92LagqB4ucDsXMHNg/KZSPxDpoP9tDdQ7JykKbloCkdRlcm1I tFut/BcBvkT8WQFldLfe0kJfDKn5ACHmKp860huOrSLDfLpYt25nymabQzWYcjhBHUo8 AdF2jHqYyTRPr7ZEy/99xrPOgf+56PIRyxTMSUUwIsNhMaybaHRGsJ2Fni+VThMYIy51 9Duu04N8THFoZaKYNSna8K9+AwLhESdR02xEDoYnNf4/dEWZC7KQq8o6kEqUESMAerZv Iyeg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=T9tVoBwG6lBQg/x7vkvD2Se6SbKVSk8khFhkXRQtkvc=; b=fewm/9aGGryEn4S8GjEjOD48m7Fc0+TRLkUDuLcEbDxWMqATm7KMMcQqGAwhyQAu5v wHa2wMgzW7ynlhceZP4lgkib7j/rZyEwu1SFsGVMs/Ku6HB8r5JEPtTT4FU3qiCOE1Zk HjIOzC9ycDrgR6x4PiArhoUgNuRHyVBcLodqFPVwOufd4GbQHmHhWYaz+jV0If/KmYWE 7LIGy7T6gtFf0yQsG4CRub5k5jyrvvR5QS2XcU8qWPk/d3mQA/RB4/C72Hrgwc1S5KhE YuMwu4oRV4qB7xRlaC2q8/nfiRv1ss7oBdew+QXxNQia+nokRC1vdB3KF5fHSQwBzQgO Jmmw==
X-Gm-Message-State AMke39lHUpui92FSezXh1hYUrPe/EPg4cQAJMzV2hf5Ga6C82IPSVZOJIGixbkN+eL2YMA==
X-Received by 10.223.161.158 with SMTP id u30mr15921240wru.152.1486933946188; Sun, 12 Feb 2017 13:12:26 -0800 (PST)
X-Mailer git-send-email 1.7.10.4
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 44
Organization linux.* mail to news gateway
X-Original-Cc Andrew Morton <akpm@linux-foundation.org>, Borislav Petkov <bp@alien8.de>, "David S. Miller" <davem@davemloft.net>, Jesper Nilsson <jesper.nilsson@axis.com>, Mikael Starvik <starvik@axis.com>, Geert Uytterhoeven <geert@linux-m68k.org>, x86@kernel.org, linux-kernel@vger.kernel.org, Mathias Krause <minipli@googlemail.com>, sparclinux@vger.kernel.org
X-Original-Date Sun, 12 Feb 2017 22:12:10 +0100
X-Original-Message-ID <1486933932-585-5-git-send-email-minipli@googlemail.com>
X-Original-References <1486933932-585-1-git-send-email-minipli@googlemail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1579284

Show key headers only | View raw


It's unused for ages, used to be required for ksyms.c back in the v1.1
times.

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
---
 arch/sparc/include/asm/processor_32.h |    6 ------
 arch/sparc/include/asm/processor_64.h |    4 ----
 2 files changed, 10 deletions(-)

diff --git a/arch/sparc/include/asm/processor_32.h b/arch/sparc/include/asm/processor_32.h
index 365d4cb267b4..dd27159819eb 100644
--- a/arch/sparc/include/asm/processor_32.h
+++ b/arch/sparc/include/asm/processor_32.h
@@ -18,12 +18,6 @@
 #include <asm/signal.h>
 #include <asm/page.h>
 
-/*
- * The sparc has no problems with write protection
- */
-#define wp_works_ok 1
-#define wp_works_ok__is_a_macro /* for versions in ksyms.c */
-
 /* Whee, this is STACK_TOP + PAGE_SIZE and the lowest kernel address too...
  * That one page is used to protect kernel from intruders, so that
  * we can make our access_ok test faster
diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/processor_64.h
index 6448cfc8292f..b58ee9018433 100644
--- a/arch/sparc/include/asm/processor_64.h
+++ b/arch/sparc/include/asm/processor_64.h
@@ -18,10 +18,6 @@
 #include <asm/ptrace.h>
 #include <asm/page.h>
 
-/* The sparc has no problems with write protection */
-#define wp_works_ok 1
-#define wp_works_ok__is_a_macro /* for versions in ksyms.c */
-
 /*
  * User lives in his very own context, and cannot reference us. Note
  * that TASK_SIZE is a misnomer, it really gives maximum user virtual
-- 
1.7.10.4

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] struct cpuinfo_x86 related cleanups Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100
  [PATCH 5/6] cris: remove unused wp_works_ok macro Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100
    Re: [PATCH 5/6] cris: remove unused wp_works_ok macro Jesper Nilsson <jesper.nilsson@axis.com> - 2017-02-13 10:20 +0100
  [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86 Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100
  [PATCH 4/6] sparc: remove unused wp_works_ok macro Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100
    Re: [PATCH 4/6] sparc: remove unused wp_works_ok macro David Miller <davem@davemloft.net> - 2017-02-13 03:50 +0100
  [PATCH 2/6] x86/cpu: drop wp_works_ok member of struct cpuinfo_x86 Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100
  [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo Mathias Krause <minipli@googlemail.com> - 2017-02-12 22:20 +0100

csiph-web