Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp729857iol; Thu, 9 Jun 2022 12:42:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVD8wlGViIea2AGdqyqXDHiSggBukZR5Bj5OwbQbPDxF8Xmh8X6ayMXsluatDQwia2pYPz X-Received: by 2002:a17:906:7309:b0:6f5:ea1:afa with SMTP id di9-20020a170906730900b006f50ea10afamr36839751ejc.170.1654803766998; Thu, 09 Jun 2022 12:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654803766; cv=none; d=google.com; s=arc-20160816; b=gGMYDtNBl3nDkMph/kY5vQ8WErvt66Hutnb2BAp51FJBqo41Q6CSsoeUf2/O1wb3/J R00VxPe7Vkw+XQ3EDPNVSoLWjajkfk1yhULEDW7eCanJhDvMwo8hVw8XmX+ArHS5QJME Xj7vA59iMVUFhrSiiXcbIM+Sa/e/FB9Db7ymE1H8h6G/Y+hL8/TilXlKoo+TZPv7D537 O9A90vR27wbgvfahl0iIiuzH1X0WvK9y8XdgSBb1wjjpvXMrJeong3Dbvh7vkHn1lHfk QPHwV+Rvjj14h+I5sZm2y3HyDk2ff7RvzVIWpy8jKb3s0jm+acz5swxsVitW1Koq7ZEX 4ccQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XvsbFBsXbCJC8twXzpRgm1jbeXhuSUvfjaB5kCcvYXE=; b=YjZZ71me7G0mmCl33GfM9bjZW/TbjDEg/Y0PzYGGj7eVmp0w0Ypxk40+ycdLstUEGQ CPDunwr+nogim5tpuPS6psh8k8YAL/Rp/CFekTactvuVEqco7xKz2w5hmElbmNKU+iln CIODDd5RzgsPO9WMIm54r26erwRhSSnUczVAsKLFH1WmeK3E/td8G68RwfiGUQtmlZV2 gVbVe+LjPs8xwBhNK+lhNu3aUL7NRVT2JOd0KbSNlwDepjF5bIt1xXZ5KUIkpJ1lV9jU kQfhgUU+2r/GIX64LAw6uX7yDc/nSU76WxDxbvDeSpjHg0B5pgPElzT/KsaNYb8Aizrl 1yQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qR91jK00; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb41-20020a1709077ea900b00709820d1367si5019436ejc.198.2022.06.09.12.42.21; Thu, 09 Jun 2022 12:42:46 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qR91jK00; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345434AbiFIS3c (ORCPT + 99 others); Thu, 9 Jun 2022 14:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345423AbiFIS3b (ORCPT ); Thu, 9 Jun 2022 14:29:31 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21818FD36B for ; Thu, 9 Jun 2022 11:29:31 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id n11so3135903iod.4 for ; Thu, 09 Jun 2022 11:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XvsbFBsXbCJC8twXzpRgm1jbeXhuSUvfjaB5kCcvYXE=; b=qR91jK00NZklYiGIq5wl0kOBTG1kFUN8YrsQ6zJs5SkLuWUDNLC9UjraAArv1hI8g4 QFoAd6OOXKkGgmDfvJ2mCI2dIr3S13IFdLr95AnKcNSd3Wu7ZW7ABKq/gVCgjdLHPUN2 FJ2BD2E5J48eXjR/R4SgNpYHlDlmFMCEHtHyrrOXWIwR7EUG0tXT/tqe/IX9KmosDEzy 7RCQ3fpTgJbmHaraJLmcb1UB14N0yk2qtVauT9Jiqtv88tgjwPAk3Zx3MhJHXwffhP3D Pf9/0BK+LhS9Z0E+q9z0q/qwcvM7lraHpcULhaeH2syVlMcktPG2Jv5Y+aGOzcqP8iTw nsJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XvsbFBsXbCJC8twXzpRgm1jbeXhuSUvfjaB5kCcvYXE=; b=Qv/iQ67308W382FEDAUoDxJ5yOxrm5iQzrb+O4Syus+4m0cgHLwRjYiI4/o5KqWj28 xU44NjdcIpezAidYSHx25rbHCvGU2fa6BNw89AqgH/YNBOvSfxrHLs2kJXoycmNHbSJ7 fyBxwk6jtT32bnzC/RuZcXwYImv3Uft3nY/apmUrgxtaYktL2y5S5SNCoPox5tIqGmoU Eckg3Es+9NXOdrs6km0NX9RICHSTKW0TU4b4QLvBmWozVSDptc4QBHyksJDmmcSWBhk1 VYqas+hZyQrsfG0OfcAzcaIipiCWg37Mv96DS4DHJ0g/D7IgwaCHoLsy87rTpAnkCuPp GOsA== X-Gm-Message-State: AOAM533PaA78wGTCZUvCYIOCoRbEE+RtV41txkFGWxAzLwFRoRdoZeK7 9rXuT4G7zoSye0jAXvgbMoIy9rZfxAWv4Xf1dlw= X-Received: by 2002:a05:6638:22cf:b0:331:a5b9:22f2 with SMTP id j15-20020a05663822cf00b00331a5b922f2mr12558649jat.218.1654799370610; Thu, 09 Jun 2022 11:29:30 -0700 (PDT) MIME-Version: 1.0 References: <20220607033122.256388-1-kunyu@nfschina.com> In-Reply-To: <20220607033122.256388-1-kunyu@nfschina.com> From: Andrey Konovalov Date: Thu, 9 Jun 2022 20:29:20 +0200 Message-ID: Subject: Re: [PATCH] arm: create_mapping function to remove unused return values To: Li kunyu , Linux ARM Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Vincenzo Frascino , linux@armlinux.org.uk, kasan-dev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, Jun 7, 2022 at 5:31 AM Li kunyu wrote: > > 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 Reviewed-by: Andrey Konovalov