]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commitdiff
UBUNTU: SAUCE: platform/x86: dell-uart-backlight: fix section mismatch warning
authorPaolo Pisati <paolo.pisati@canonical.com>
Wed, 22 Apr 2020 13:20:47 +0000 (13:20 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:51 +0000 (08:03 +0200)
...
WARNING: modpost: drivers/platform/x86/dell-uart-backlight.o(.text+0x979): Section mismatch in reference from the function dell_uart_bl_add() to the variable .init.rodata:dell_uart_backlight_alpha_platform
The function dell_uart_bl_add() references
the variable __initconst dell_uart_backlight_alpha_platform.
This is often because dell_uart_bl_add lacks a __initconst
annotation or the annotation of dell_uart_backlight_alpha_platform is wrong.

dell_uart_bl_add() was referencing an __initconst
dell_uart_backlight_alpha_platform variable without the __init annotation: fix it by removing __initconst

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/platform/x86/dell/dell-uart-backlight.c

index bddc4f228bf9fef35cd778d87aa171d5e094d62d..beb6618f13b8cf4880982aa3000b50759f3363b0 100644 (file)
@@ -117,7 +117,7 @@ static struct dell_uart_bl_cmd uart_cmd[] = {
        },
 };
 
-static const struct dmi_system_id dell_uart_backlight_alpha_platform[] __initconst = {
+static const struct dmi_system_id dell_uart_backlight_alpha_platform[] = {
        {
                .ident = "Dell Inspiron 7777 AIO",
                .matches = {