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


Groups > linux.kernel > #1406363

[PATCH 3/3] openrisc: Remove orphaned __addr_ok() definition

Path csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Robin Murphy <robin.murphy@arm.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] openrisc: Remove orphaned __addr_ok() definition
Date Tue, 24 May 2016 20:10:03 +0200
Message-ID <rCoWf-6FE-53@gated-at.bofh.it> (permalink)
References <rCoWd-6FE-15@gated-at.bofh.it>
X-Mailer git-send-email 2.8.1.dirty
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 26
Organization linux.* mail to news gateway
X-Original-Cc linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
X-Original-Date Tue, 24 May 2016 18:55:42 +0100
X-Original-Message-ID <2d34650818ced1b3c362dfc75d087b70c0f7edef.1464111462.git.robin.murphy@arm.com>
X-Original-References <4656e09e40e832b2690fb0280975c70a541fb7ef.1464111462.git.robin.murphy@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1406363

Show key headers only | View raw


Since commit b48b2c3e5043 ("openrisc: use generic strnlen_user()
function"), the definition of __addr_ok() has been languishing unused;
eradicate the sucker.

CC: Jonas Bonn <jonas@southpole.se>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 arch/openrisc/include/asm/uaccess.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h
index a6bd07ca3d6c..74bcb34c6d0b 100644
--- a/arch/openrisc/include/asm/uaccess.h
+++ b/arch/openrisc/include/asm/uaccess.h
@@ -59,9 +59,6 @@
  */
 #define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs()-size))
 
-/* Ensure that addr is below task's addr_limit */
-#define __addr_ok(addr) ((unsigned long) addr < get_fs())
-
 #define access_ok(type, addr, size) \
 	__range_ok((unsigned long)addr, (unsigned long)size)
 
-- 
2.8.1.dirty

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


Thread

[PATCH 1/3] arm64: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200
  [PATCH 2/3] ARM: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200
  [PATCH 3/3] openrisc: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200

csiph-web