[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABGGisySdgSma1bSF2Bk586Vf461o-U2f3w9UMgHJcVucQ0oFA@mail.gmail.com>
Date: Mon, 3 Dec 2018 10:27:02 -0600
From: Rob Herring <robh@...nel.org>
To: rppt@...ux.ibm.com
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Arnd Bergmann <arnd@...db.de>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
davem@...emloft.net, gxt@....edu.cn,
Greentime Hu <green.hu@...il.com>, jonas@...thpole.se,
Michael Ellerman <mpe@...erman.id.au>, mhocko@...e.com,
Michal Simek <monstr@...str.eu>, msalter@...hat.com,
Paul Mackerras <paulus@...ba.org>, dalias@...c.org,
linux@...linux.org.uk, stefan.kristiansson@...nalahti.fi,
shorne@...il.com, deanbo422@...il.com, ysato@...rs.sourceforge.jp,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-c6x-dev@...ux-c6x.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-mm@...ck.org, linux-sh@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, openrisc@...ts.librecores.org,
sparclinux@...r.kernel.org
Subject: Re: [PATCH v2 6/6] arm, unicore32: remove early_alloc*() wrappers
On Mon, Dec 3, 2018 at 9:48 AM Mike Rapoport <rppt@...ux.ibm.com> wrote:
>
> On arm and unicore32i the early_alloc_aligned() and and early_alloc() are
> oneliner wrappers for memblock_alloc.
>
> Replace their usage with direct call to memblock_alloc.
>
> Suggested-by: Christoph Hellwig <hch@...radead.org>
> Signed-off-by: Mike Rapoport <rppt@...ux.ibm.com>
> ---
> arch/arm/mm/mmu.c | 11 +++--------
> arch/unicore32/mm/mmu.c | 12 ++++--------
> 2 files changed, 7 insertions(+), 16 deletions(-)
>
> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
> index 0a04c9a5..57de0dd 100644
> --- a/arch/arm/mm/mmu.c
> +++ b/arch/arm/mm/mmu.c
> @@ -719,14 +719,9 @@ EXPORT_SYMBOL(phys_mem_access_prot);
>
> #define vectors_base() (vectors_high() ? 0xffff0000 : 0)
>
> -static void __init *early_alloc_aligned(unsigned long sz, unsigned long align)
> -{
> - return memblock_alloc(sz, align);
> -}
> -
> static void __init *early_alloc(unsigned long sz)
Why not get rid of this wrapper like you do on unicore?
> {
> - return early_alloc_aligned(sz, sz);
> + return memblock_alloc(sz, sz);
> }
Powered by blists - more mailing lists