Re: [PATCH 2/2] init/modpost: conditionally check section mismatch to __meminit*
From: Masahiro Yamada
Date: Sun Jul 07 2024 - 01:59:31 EST
On Sun, Jul 7, 2024 at 9:01 AM Wei Yang <richard.weiyang@xxxxxxxxx> wrote:
>
> On Sun, Jul 07, 2024 at 01:05:06AM +0900, Masahiro Yamada wrote:
> >This reverts commit eb8f689046b8 ("Use separate sections for __dev/
> >_cpu/__mem code/data").
> >
> >Check section mismatch to __meminit* only when CONFIG_MEMORY_HOTPLUG=y.
> >
> >With this change, the linker script and modpost become simpler, and we
> >can get rid of the __ref annotations from the memory hotplug code.
> >
>
> Oh, totally get rid of .meminit.*. Looks nice.
> Maybe we can plan a __ref cleanup after this on is merged?
Yes. We can remove __ref.
All __ref annotations in mm/memory_hotplug.c will become
redundant.
--
Best Regards
Masahiro Yamada