From patchwork Tue Jun 7 03:31:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li kunyu X-Patchwork-Id: 12871326 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65051C43334 for ; Tue, 7 Jun 2022 03:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=eRKTYxaQLK5UT+RmTxAvWmAjDe1ONHWw9P8ZK202PJw=; b=azHqABHg8cw9bi OEp0C5WT5X+OEAvdm3e8pFVUBtHKsZLqRMZD8mQlqch6Ape5vvDb/H7FqGSx70ILGVMo85zw4cpId mnuFZ7i3KCqIa7S4Md0Gh6tW5OdBQNF7dmf44G29f9Y9Zxm1DdvQiNpwl8Ne37qfNi+hq0HhU4cvL /qTviKeUiUQ0Dt++AgdZOQ85SVbpFhXmvPNqQgBWOHIItVijdvJ+1SUUq61TlFOwAqb1Ebgmo/kPG fg2xL9g/H2fZRtEsrqKEkklD1PA8zwViDXuUQWyCxP7jNTWzB/CHHYi+gfjOhR0/V6JdKp2iv8y6/ 7kB4iwGsbT9XM+EBl7Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyPwl-004UR8-VY; Tue, 07 Jun 2022 03:32:00 +0000 Received: from [2400:dd01:100f:2:72e2:84ff:fe10:5f45] (helo=mail.nfschina.com) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyPwh-004UPl-Ow for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2022 03:31:57 +0000 Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 0B8461E80D74; Tue, 7 Jun 2022 11:31:27 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VxJoDDgVzgzL; Tue, 7 Jun 2022 11:31:24 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 261341E80D55; Tue, 7 Jun 2022 11:31:24 +0800 (CST) From: Li kunyu 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 Subject: [PATCH] arm: create_mapping function to remove unused return values Date: Tue, 7 Jun 2022 11:31:22 +0800 Message-Id: <20220607033122.256388-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_203156_037237_D9384C8F X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Change the return value to void to reduce eax register execution. Signed-off-by: Li kunyu Reviewed-by: Andrey Konovalov --- 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)