mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Li kunyu <kunyu@nfschina.com>
To: ryabinin.a.a@gmail.com, glider@google.com, andreyknvl@gmail.com,
	dvyukov@google.com, vincenzo.frascino@arm.com
Cc: linux@armlinux.org.uk, kasan-dev@googlegroups.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Li kunyu <kunyu@nfschina.com>
Subject: [PATCH] arm: create_mapping function to remove unused return values
Date: Tue,  7 Jun 2022 11:31:22 +0800	[thread overview]
Message-ID: <20220607033122.256388-1-kunyu@nfschina.com> (raw)

Change the return value to void to reduce eax register execution.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
 arch/arm/mm/kasan_init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mm/kasan_init.c b/arch/arm/mm/kasan_init.c
index 5ad0d6c56d56..db2068329985 100644
--- a/arch/arm/mm/kasan_init.c
+++ b/arch/arm/mm/kasan_init.c
@@ -187,7 +187,7 @@ static void __init clear_pgds(unsigned long start,
 		pmd_clear(pmd_off_k(start));
 }
 
-static int __init create_mapping(void *start, void *end)
+static void __init create_mapping(void *start, void *end)
 {
 	void *shadow_start, *shadow_end;
 
@@ -199,7 +199,6 @@ static int __init create_mapping(void *start, void *end)
 
 	kasan_pgd_populate((unsigned long)shadow_start & PAGE_MASK,
 			   PAGE_ALIGN((unsigned long)shadow_end), false);
-	return 0;
 }
 
 void __init kasan_init(void)
-- 
2.18.2


             reply	other threads:[~2022-06-07  3:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-07  3:31 Li kunyu [this message]
2022-06-09 18:29 ` Andrey Konovalov

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=20220607033122.256388-1-kunyu@nfschina.com \
    --to=kunyu@nfschina.com \
    --cc=andreyknvl@gmail.com \
    --cc=dvyukov@google.com \
    --cc=glider@google.com \
    --cc=kasan-dev@googlegroups.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=ryabinin.a.a@gmail.com \
    --cc=vincenzo.frascino@arm.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

all inboxes | Powered by JetHome®