]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: msm: Fix section mismatch warning
authorKumar Gala <galak@codeaurora.org>
Tue, 3 Jun 2014 20:13:22 +0000 (15:13 -0500)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Jun 2014 12:59:53 +0000 (14:59 +0200)
commit2ed33b6ebb8d66bdaa8831baf529a111154f8d93
treea8d8e8ed539ae6c740c066aa7a29d7815a14a4dd
parent2f5882174e9ed04909b3f80d122e1100ca0123ca
tty: serial: msm: Fix section mismatch warning

WARNING: drivers/tty/built-in.o(.data+0x3544): Section mismatch in
reference from the variable msm_platform_driver to the function
.init.text:msm_serial_probe()
The variable msm_platform_driver references
the function __init msm_serial_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Signed-off-by: Kumar Gala <galak@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/tty/serial/msm_serial.c