Re: [tip: x86/percpu] x86/callthunks: Mark apply_relocation() as __init_or_module
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip: x86/percpu] x86/callthunks: Mark apply_relocation() as __init_or_module
- From: Borislav Petkov <bp@xxxxxxxxx>
- Date: Thu, 7 Dec 2023 12:15:09 +0100
- Cc: linux-tip-commits@xxxxxxxxxxxxxxx, Ingo Molnar <mingo@xxxxxxxxxx>, Uros Bizjak <ubizjak@xxxxxxxxx>, x86@xxxxxxxxxx
- In-reply-to: <170137899106.398.14613676631297252898.tip-bot2@tip-bot2>
- References: <20231105213731.1878100-3-ubizjak@gmail.com> <170137899106.398.14613676631297252898.tip-bot2@tip-bot2>
On Thu, Nov 30, 2023 at 09:16:31PM -0000, tip-bot2 for Ingo Molnar wrote:
> -void apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len)
> +void __init_or_module apply_relocation(u8 *buf, size_t len, u8 *dest, u8 *src, size_t src_len)
> {
> int prev, target = 0;
Can't do that for a CONFIG_MODULES=n build:
WARNING: modpost: vmlinux: section mismatch in reference: patch_dest+0x61 (section: .text) -> apply_relocation (section: .init.text)
ERROR: modpost: Section mismatches detected.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]