Re: linux-next: build warning after merge of the rcu tree

From: Paul E. McKenney
Date: Tue Jul 25 2023 - 23:33:12 EST


On Wed, Jul 26, 2023 at 12:32:30PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the rcu tree, today's linux-next build (x86_64 allmodconfig)
> produced this warning:
>
> WARNING: modpost: vmlinux: section mismatch in reference: cmdline_load_proc_show+0x22 (section: .text) -> boot_command_line (section: .init.data)
>
> Introduced by commit
>
> cf9eca90a339 ("fs/proc: Add /proc/cmdline_load for boot loader arguments")

That __initdata needs to be __ro_after_init, doesn't it? Will fix,
thank you!

Thanx, Paul