Skip to content

Commit

Permalink
serial: pch_uart: Remove __initdata annotation from dmi_table
Browse files Browse the repository at this point in the history
The dmi_table is best accessed from the probe function, which is not
an __init function. Drop the __initdata annotation from the dmi_table
to avoid the section mismatch compiler warnings:

WARNING: drivers/tty/serial/pch_uart.o(.text+0x4871): Section mismatch
in reference from the function pch_uart_init_port() to the variable
.init.data:pch_uart_dmi_table

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Darren Hart authored and Greg Kroah-Hartman committed Jul 29, 2013
1 parent e06922a commit 0a09ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/pch_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static const struct file_operations port_regs_ops = {
};
#endif /* CONFIG_DEBUG_FS */

static struct dmi_system_id __initdata pch_uart_dmi_table[] = {
static struct dmi_system_id pch_uart_dmi_table[] = {
{
.ident = "CM-iTC",
{
Expand Down

0 comments on commit 0a09ae9

Please sign in to comment.