All of lore.kernel.org
 help / color / mirror / Atom feed
From: vladimir.murzin@arm.com (Vladimir Murzin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: entry: Remove dead code in sys_mmap2
Date: Mon, 14 Aug 2017 09:44:28 +0100	[thread overview]
Message-ID: <1502700269-24384-2-git-send-email-vladimir.murzin@arm.com> (raw)
In-Reply-To: <1502700269-24384-1-git-send-email-vladimir.murzin@arm.com>

We support page size of 4K only, remove dead code.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
---
 arch/arm/kernel/entry-common.S | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
index eb5cd77..52237ce 100644
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -371,17 +371,8 @@ ENDPROC(sys_fstatfs64_wrapper)
  * offset, we return EINVAL.
  */
 sys_mmap2:
-#if PAGE_SHIFT > 12
-		tst	r5, #PGOFF_MASK
-		moveq	r5, r5, lsr #PAGE_SHIFT - 12
-		streq	r5, [sp, #4]
-		beq	sys_mmap_pgoff
-		mov	r0, #-EINVAL
-		ret	lr
-#else
 		str	r5, [sp, #4]
 		b	sys_mmap_pgoff
-#endif
 ENDPROC(sys_mmap2)
 
 #ifdef CONFIG_OABI_COMPAT
-- 
2.0.0

  reply	other threads:[~2017-08-14  8:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14  8:44 [PATCH] ARM: Remove leftover of fixmap_page_table Vladimir Murzin
2017-08-14  8:44 ` Vladimir Murzin [this message]
2017-09-01 10:35   ` [PATCH] ARM: entry: Remove dead code in sys_mmap2 Vladimir Murzin
2017-09-01 23:05     ` Russell King - ARM Linux
2017-08-14  8:44 ` [PATCH] ARM: mm: Remove dead code in mem_init() Vladimir Murzin
2017-09-01 10:35   ` Vladimir Murzin
2017-09-01 23:06     ` Russell King - ARM Linux
2017-09-01 10:34 ` [PATCH] ARM: Remove leftover of fixmap_page_table Vladimir Murzin
2017-09-01 23:05   ` Russell King - ARM Linux

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=1502700269-24384-2-git-send-email-vladimir.murzin@arm.com \
    --to=vladimir.murzin@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.