Messages in this thread | | | Date | Thu, 7 Dec 2023 12:15:09 +0100 | From | Borislav Petkov <> | Subject | Re: [tip: x86/percpu] x86/callthunks: Mark apply_relocation() as __init_or_module |
| |
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
| |