linux-next: build warnings in Linus' tree
Subsystems (2)
Hi all,
Building Linus' tree, today's linux-next build (x86_64 allmodconfig) produced these warnings:
WARNING: modpost: vmlinux.o(.text.unlikely+0x63df): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:builtin_cmdline The function prepare_command_line() references
the variable __initdata builtin_cmdline.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of builtin_cmdline is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x63fa): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:builtin_cmdline The function prepare_command_line() references
the variable __initdata builtin_cmdline.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of builtin_cmdline is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x640b): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6412): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:builtin_cmdline The function prepare_command_line() references
the variable __initdata builtin_cmdline.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of builtin_cmdline is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6423): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:builtin_cmdline The function prepare_command_line() references
the variable __initdata builtin_cmdline.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of builtin_cmdline is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6461): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:builtin_cmdline The function prepare_command_line() references
the variable __initdata builtin_cmdline.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of builtin_cmdline is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6468): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6474): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x647f): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6487): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x6498): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:boot_command_line The function prepare_command_line() references
the variable __initdata boot_command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of boot_command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x649f): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:command_line The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x64b8): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:command_line The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x64c3): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:command_line The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of command_line is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x64c9): Section mismatch in reference from the function prepare_command_line() to the function .init.text:parse_early_param() The function prepare_command_line() references
the function __init parse_early_param().
This is often because prepare_command_line lacks a __init
annotation or the annotation of parse_early_param is wrong.
WARNING: modpost: vmlinux.o(.text.unlikely+0x64d0): Section mismatch in reference from the function prepare_command_line() to the variable .init.data:command_line The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata
annotation or the annotation of command_line is wrong.
Introduced by commit
8d48bf8206f7 ("x86/boot: Pull up cmdline preparation and early param parsing")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 10 lines · Stephen Rothwell
Hi all,
Building Linus' tree, today's linux-next build (
x86_64allmodconfig) produced these warnings:WARNING: modpost:
vmlinux.o(.text.unlikely+0x63df): Section mismatch in reference from the functionprepare_command_line()to the variable .init.data:builtin_cmdline The functionprepare_command_line()references
the variable__initdatabuiltin_cmdline.
This is often becauseprepare_command_linelacks a__initdata
annotation or the annotation ofbuiltin_cmdlineis wrong.
Doesn't trigger with my toolchain, because it simply inlines that function.
Anyway, fix is trivial, thanks for reporting.
---
From 4f4226a7dce0c5b6d911574f7fa5870c4ee693ff Mon Sep 17 00:00:00 2001
From: Borislav Petkov <[email protected]>
Date: Tue, 23 Nov 2021 07:53:57 +0100
Subject: [PATCH] x86/boot: Mark prepare_command_line() __init
Fix:
WARNING: modpost: vmlinux.o(.text.unlikely+0x64d0): Section mismatch in reference \
from the function prepare_command_line() to the variable .init.data:command_line
The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata annotation or the annotation of command_line is wrong.
Apparently some toolchains do different inlining decisions.
--- arch/x86/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/setup.c +1 -1
@@ -742,7 +742,7 @@ dump_kernel_offset(struct notifier_block *self, unsigned long v, void *p)return 0 ; } -static char *prepare_command_line (void ) +static char *__init prepare_command_line (void ) {#ifdef CONFIG_CMDLINE_BOOL #ifdef CONFIG_CMDLINE_OVERRIDE
Signature · 7 lines
2.29.2
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg[tip: x86/urgent] x86/boot: Mark prepare_command_line() __init
The following commit has been merged into the x86/urgent branch of tip:
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: c0f2077baa4113f38f008b8e912b9fb3ff8d43df Gitweb: https://git.kernel.org/tip/c0f2077baa4113f38f008b8e912b9fb3ff8d43df Author: Borislav Petkov <[email protected]> AuthorDate: Tue, 23 Nov 2021 08:04:34 +01:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Wed, 24 Nov 2021 12:20:24 +01:00
x86/boot: Mark prepare_command_line() __init
Fix:
WARNING: modpost: vmlinux.o(.text.unlikely+0x64d0): Section mismatch in reference \
from the function prepare_command_line() to the variable .init.data:command_line
The function prepare_command_line() references
the variable __initdata command_line.
This is often because prepare_command_line lacks a __initdata annotation or the annotation of command_line is wrong.
Apparently some toolchains do different inlining decisions.
--- arch/x86/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/setup.c +1 -1
@@ -742,7 +742,7 @@ dump_kernel_offset(struct notifier_block *self, unsigned long v, void *p)return 0 ; } -static char *prepare_command_line (void ) +static char *__init prepare_command_line (void ) {#ifdef CONFIG_CMDLINE_BOOL #ifdef CONFIG_CMDLINE_OVERRIDE