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 <paolo.pisati@canonical.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user