提交 795b5bbe 编写于 作者: V Vineet Gupta 提交者: Greg Kroah-Hartman

serial/arc-uart: Fix section mistmatch

Commit "serial/arc-uart: split probe from probe_earlyprintk" introduced
a build time warning:

"WARNING: vmlinux.o(.data+0x5baa0): Section mismatch in reference from
the variable early_arc_platform_driver to the function
.init.text:arc_serial_probe_earlyprintk()"

While at it - fixed another incorrectly placed initdata annotation.
Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: fengguang.wu@intel.com
Cc: linux-serial@vger.kernel.org
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ac4ce718
...@@ -659,7 +659,7 @@ static __init void early_serial_write(struct console *con, const char *s, ...@@ -659,7 +659,7 @@ static __init void early_serial_write(struct console *con, const char *s,
} }
} }
static struct __initdata console arc_early_serial_console = { static struct console arc_early_serial_console __initdata = {
.name = "early_ARCuart", .name = "early_ARCuart",
.write = early_serial_write, .write = early_serial_write,
.flags = CON_PRINTBUFFER | CON_BOOT, .flags = CON_PRINTBUFFER | CON_BOOT,
...@@ -731,7 +731,7 @@ static struct platform_driver arc_platform_driver = { ...@@ -731,7 +731,7 @@ static struct platform_driver arc_platform_driver = {
#ifdef CONFIG_SERIAL_ARC_CONSOLE #ifdef CONFIG_SERIAL_ARC_CONSOLE
static struct platform_driver early_arc_platform_driver = { static struct platform_driver early_arc_platform_driver __initdata = {
.probe = arc_serial_probe_earlyprintk, .probe = arc_serial_probe_earlyprintk,
.remove = arc_serial_remove, .remove = arc_serial_remove,
.driver = { .driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册