Files
linux/drivers
Sebastian Andrzej Siewior 8c74f4c80e FROMLIST: tty: goldfish: Enable 'earlycon' only if built-in
Commit 3840ed9548 ("tty: goldfish: Implement support for kernel
'earlycon' parameter") breaks an allmodconfig config on x86:
|  LD      vmlinux.o
|  MODPOST vmlinux.o
|drivers/tty/serial/earlycon.o: In function `parse_options':
|drivers/tty/serial/earlycon.c:97: undefined reference to `uart_parse_earlycon'
|Makefile:1005: recipe for target 'vmlinux' failed

earlycon.c::parse_options() invokes uart_parse_earlycon() from serial_core.c
which is compiled=m because GOLDFISH_TTY itself (and most others) are =m.
To avoid that, I'm adding the _CONSOLE config option which is selected if the
GOLDFISH module itself is =y since it doesn't need the early bits for the =m
case (other drivers do the same dance).
The alternative would be to move uart_parse_earlycon() from
serial_core.c to earlycon.c (we don't have that many users of that
function).

Fixes: 3840ed9548 ("tty: goldfish: Implement support for kernel
       'earlycon' parameter")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
(cherry picked from: https://patchwork.kernel.org/patch/10084429/)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2018-02-05 08:58:37 -08:00
..
2017-12-16 10:33:55 +01:00
2018-01-31 14:08:55 +01:00
2018-02-03 17:44:38 +01:00
2017-12-27 13:36:00 +01:00
2018-01-10 09:27:08 +01:00
2017-12-20 10:49:07 +01:00
2018-02-03 17:44:38 +01:00
2017-12-27 13:36:00 +01:00
2017-12-16 10:33:53 +01:00
2017-11-30 08:37:27 +00:00
2018-01-31 14:08:55 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:04:29 +01:00
2018-01-02 20:33:20 +01:00
2018-01-31 14:08:55 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2017-07-27 15:36:54 -07:00
2017-11-15 17:38:52 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2018-02-03 17:44:38 +01:00
2017-12-27 13:36:00 +01:00
2017-12-02 06:53:27 +00:00
2017-12-02 06:53:27 +00:00