]> Git Repo - linux.git/commit
init/modpost: conditionally check section mismatch to __meminit*
authorMasahiro Yamada <[email protected]>
Sat, 6 Jul 2024 16:05:06 +0000 (01:05 +0900)
committerAndrew Morton <[email protected]>
Fri, 12 Jul 2024 23:39:52 +0000 (16:39 -0700)
commit73db3abdca58c8a014ec4c88cf5ef925cbf63669
tree3d3c2cee2d51dd9457804aeb322918211b861939
parent7a7127aa33c9f5b7b54ffa80619f644c5e000846
init/modpost: conditionally check section mismatch to __meminit*

This reverts commit eb8f689046b8 ("Use separate sections for __dev/
_cpu/__mem code/data").

Check section mismatch to __meminit* only when CONFIG_MEMORY_HOTPLUG=n.

With this change, the linker script and modpost become simpler, and we
can get rid of the __ref annotations from the memory hotplug code.

[[email protected]: remove MEM_KEEP from arch/powerpc/kernel/vmlinux.lds.S]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Reviewed-by: Wei Yang <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
arch/powerpc/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h
include/linux/init.h
scripts/mod/modpost.c
This page took 0.062299 seconds and 4 git commands to generate.