Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1351831iof; Tue, 7 Jun 2022 04:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoO5P1+IqvKGG7ubNIsrMaXVm/MHso7OYJUgmzCYddBo5CNL5cYeKvoyTg/teomos06w1+ X-Received: by 2002:a17:90b:3b88:b0:1e6:7aa2:4301 with SMTP id pc8-20020a17090b3b8800b001e67aa24301mr31272624pjb.118.1654599732358; Tue, 07 Jun 2022 04:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654599732; cv=none; d=google.com; s=arc-20160816; b=Afs6JFzGrkigVXSWMaA/cOkakcEEMnycSFWkYH9awNGRg6RmjUBtsyKdO2G8SJeq2T VQkn/ZHbY+Ik99aHew4CtZfSPSN7DV6s3Z52ivHeUejU4bHPpP40GBNMbMVO3fiqbDZN m45RyGs/Z63mtcZCbO1fTPCU5XQrpLqWY05PSeN/GY4TqAADdeOiJVhqfFoWOIrvAR8m eoYasyCCH//3bqcVR8UfqcJKgoeSkwFeRJTZhZzcE/apLSdjDTzSCipi2f8oNjwmL7gv mbgWOpl/99cfTkqHvBCvU8DP+vmR+5Eg9lHBfxUKTyzX0p9XdB4URnyfRId0f/8iVlua wzLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Vtrr+02ofV5Z9gPNp0Tbi3jRl4uRBmgkF4ORpJNdQ+o=; b=Nfyrc7TBImRGI7aN5oUdvPiSOETG4olt3mV0zzR9X7vKkQr2eCOU9Yy5Q7aBOg4rh2 643bB+VzjoWF1pW7cI0aG8wZIwWTPNOVofRFNjzsJwM9LY+LiTtDy8s4pu5YHqiL+KCT 4iSPBl9MmnOxmzZI9DojK+j6kqjdNJm/ApKgTBAwNXgDBUYyveOyCSFEYNg3UP9Jk2ME Sl5fiFIRIzg57+XV3lnzzlFcfNZh11+eAvUgndoQPQc/xIbi+lNEwAPed4yFM+I/oamM jxFp0bEZIwMwEFd8+NLwHfGdhx5KhBYoZ6p4ZWtrEC4qM0zjtzVG5yEcuvl0TOowJb+d 5NJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020aa79901000000b005180f2b05b4si21643478pff.102.2022.06.07.04.01.58; Tue, 07 Jun 2022 04:02:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234903AbiFGDbq (ORCPT + 99 others); Mon, 6 Jun 2022 23:31:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiFGDbp (ORCPT ); Mon, 6 Jun 2022 23:31:45 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA629427E8 for ; Mon, 6 Jun 2022 20:31:43 -0700 (PDT) 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-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the return value to void to reduce eax register execution. Signed-off-by: Li kunyu --- 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