lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+fCnZd-JS2tdojpNigt9brcH=ZX78Pe3AB-wwc8o+3UNnGuJQ@mail.gmail.com>
Date:   Thu, 9 Jun 2022 20:29:20 +0200
From:   Andrey Konovalov <andreyknvl@...il.com>
To:     Li kunyu <kunyu@...china.com>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>
Cc:     Andrey Ryabinin <ryabinin.a.a@...il.com>,
        Alexander Potapenko <glider@...gle.com>,
        Dmitry Vyukov <dvyukov@...gle.com>,
        Vincenzo Frascino <vincenzo.frascino@....com>,
        linux@...linux.org.uk, kasan-dev <kasan-dev@...glegroups.com>,
        LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] arm: create_mapping function to remove unused return values

On Tue, Jun 7, 2022 at 5:31 AM Li kunyu <kunyu@...china.com> wrote:
>
> Change the return value to void to reduce eax register execution.
>
> Signed-off-by: Li kunyu <kunyu@...china.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

Reviewed-by: Andrey Konovalov <andreyknvl@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ