Thread (11 messages) 11 messages, 4 authors, 2021-06-07

Re: [PATCH v2 00/15] init_mm: cleanup ARCH's text/data/brk setup code

From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2021-06-07 09:31:37
Also in: linux-arm-kernel, linux-m68k, linux-mm, linux-riscv, linux-s390, linux-sh, lkml

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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help