[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210607093121.GC22278@shell.armlinux.org.uk>
Date: Mon, 7 Jun 2021 10:31:21 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: Kefeng Wang <wangkefeng.wang@...wei.com>,
Mike Rapoport <rppt@...nel.org>,
uclinux-h8-devel@...ts.sourceforge.jp, linux-s390@...r.kernel.org,
linux-sh@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-csky@...r.kernel.org, linux-mm@...ck.org,
linux-m68k@...ts.linux-m68k.org, openrisc@...ts.librecores.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-snps-arc@...ts.infradead.org, linuxppc-dev@...ts.ozlabs.org,
linux-riscv@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2 00/15] init_mm: cleanup ARCH's text/data/brk setup code
On Mon, Jun 07, 2021 at 07:48:54AM +0200, Christophe Leroy wrote:
> Hi Kefeng,
>
> What you could do is to define a __weak function that architectures can
> override and call that function from mm_init() as suggested by Mike,
The problem with weak functions is that they bloat the kernel. Each
time a weak function is overriden, it becomes dead unreachable code
within the kernel image.
At some point we're probabily going to have to enable -ffunction-sections
to (hopefully) allow the dead code to be discarded.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists