From f7e7d26d446c697a010d8ba207fd88a73103fae6 Mon Sep 17 00:00:00 2001 From: Paolo Pisati Date: Wed, 22 Apr 2020 13:20:47 +0000 Subject: [PATCH] UBUNTU: SAUCE: platform/x86: dell-uart-backlight: fix section mismatch warning ... 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 --- drivers/platform/x86/dell/dell-uart-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell/dell-uart-backlight.c b/drivers/platform/x86/dell/dell-uart-backlight.c index 947d7190ca54..68170ee255b8 100644 --- a/drivers/platform/x86/dell/dell-uart-backlight.c +++ b/drivers/platform/x86/dell/dell-uart-backlight.c @@ -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 = {