8250: uniphier: allow modular build with 8250 console
Subsystems (2)
PATCH 1/1 8250: uniphier: allow modular build with 8250 console
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!
Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
drivers/tty/serial/8250/8250_uniphier.c +1 -1
@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {
Hi Arnd,
2016-01-14 7:33 GMT+09:00 Arnd Bergmann <[email protected]>:
Quoted 19 lines
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "
early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
Signed-off-by Arnd Bergmann <[email protected]>Fixes b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")drivers/tty/serial/8250/8250_uniphier.c +0
-0
drivers/tty/serial/8250/8250_uniphier.c struct uniphier8250_priv { · line 41
Quoted 8 lines
drivers/tty/serial/8250/8250_uniphier.c +1
-1@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {
If my patch (https://patchwork.kernel.org/patch/8029331/) is accepted, this build error will be fixed as well. But I doubt it is accepted soon...
So, I am OK with this workaround to fix "make allmodconfig".
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 33 lines · On Thursday 21 January 2016 20:39:03 Masahiro Yamada wrote:
2016-01-14 7:33 GMT+09:00 Arnd Bergmann <[email protected]>:
Quoted 19 lines
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "
early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
Signed-off-by Arnd Bergmann <[email protected]>Fixes b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")drivers/tty/serial/8250/8250_uniphier.c +0
-0drivers/tty/serial/8250/8250_uniphier.c struct uniphier8250_priv { · line 41
Quoted 8 lines
drivers/tty/serial/8250/8250_uniphier.c +1
-1@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {If my patch (https://patchwork.kernel.org/patch/8029331/) is accepted, this build error will be fixed as well. But I doubt it is accepted soon...
Quoted 4 lines
So, I am OK with this workaround to fix "make allmodconfig".
Acked-by Masahiro Yamada <[email protected]>
Good point. Adding the DT maintainers to Cc. Guys, any chance of you picking up Masahiro's patch for 4.5?
It can't hurt to have both patches merged, so it would still be good to have mine in the serial driver fixes, but we can live with either of the two to fix the build.
Arnd
Quoted 34 lines · Arnd Bergmann
Quoted 33 lines · On Thursday 21 January 2016 20:39:03 Masahiro Yamada wrote:
2016-01-14 7:33 GMT+09:00 Arnd Bergmann <[email protected]>:
Quoted 19 lines
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "
early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
Signed-off-by Arnd Bergmann <[email protected]>Fixes b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")drivers/tty/serial/8250/8250_uniphier.c +0
-0drivers/tty/serial/8250/8250_uniphier.c struct uniphier8250_priv { · line 41
Quoted 8 lines
drivers/tty/serial/8250/8250_uniphier.c +1
-1@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {If my patch (https://patchwork.kernel.org/patch/8029331/) is accepted, this build error will be fixed as well. But I doubt it is accepted soon...
Quoted 7 lines
Quoted 4 lines
So, I am OK with this workaround to fix "make allmodconfig".
Acked-by Masahiro Yamada <[email protected]>Good point. Adding the DT maintainers to Cc. Guys, any chance of you picking up Masahiro's patch for 4.5?
I will if you can update the commit log with the details here about it fixing an actual problem.
Rob
Hi Rob.
2016-01-21 23:09 GMT+09:00 Rob Herring <[email protected]>:
Quoted 37 lines · Arnd Bergmann
Quoted 36 lines · On Thursday 21 January 2016 20:39:03 Masahiro Yamada wrote:
Quoted 35 lines
2016-01-14 7:33 GMT+09:00 Arnd Bergmann <[email protected]>:
Quoted 19 lines
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "
early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
Signed-off-by Arnd Bergmann <[email protected]>Fixes b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")drivers/tty/serial/8250/8250_uniphier.c +0
-0drivers/tty/serial/8250/8250_uniphier.c struct uniphier8250_priv { · line 41
Quoted 8 lines
drivers/tty/serial/8250/8250_uniphier.c +1
-1@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {If my patch (https://patchwork.kernel.org/patch/8029331/) is accepted, this build error will be fixed as well. But I doubt it is accepted soon...
So, I am OK with this workaround to fix "make allmodconfig".
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Acked-by Masahiro Yamada <[email protected]>Good point. Adding the DT maintainers to Cc. Guys, any chance of you picking up Masahiro's patch for 4.5?
I will if you can update the commit log with the details here about it fixing an actual problem.
I did so in v2.
Thanks!
Signature · 2 lines
Best Regards Masahiro Yamada
Just for clarification:
The build error was fixed by another patch
(https://patchwork.kernel.org/patch/8082931/)
So, this one is unneeded.
2016-01-22 1:50 GMT+09:00 Masahiro Yamada <[email protected]>:
Quoted 60 lines
Hi Rob.
2016-01-21 23:09 GMT+09:00 Rob Herring <[email protected]>:
Quoted 37 lines · Arnd Bergmann
Quoted 36 lines · On Thursday 21 January 2016 20:39:03 Masahiro Yamada wrote:
Quoted 35 lines
2016-01-14 7:33 GMT+09:00 Arnd Bergmann <[email protected]>:
Quoted 19 lines
The recently added uniphier 8250 port driver supports early console probing, and it supports being built as a module, but the combination of the two fails to link:
ERROR: "
early_serial8250_setup" [drivers/tty/serial/8250/8250_uniphier.ko] undefined!Given that earlycon support in a loadable module makes no sense, making that code conditional on 'MODULE' is a correct solution.
Signed-off-by Arnd Bergmann <[email protected]>Fixes b8d20e06eaad ("serial: 8250_uniphier: add earlycon support")drivers/tty/serial/8250/8250_uniphier.c +0
-0drivers/tty/serial/8250/8250_uniphier.c struct uniphier8250_priv { · line 41
Quoted 8 lines
drivers/tty/serial/8250/8250_uniphier.c +1
-1@@ -35,7 +35,7 @@ struct uniphier8250_priv {spinlock_t atomic_write_lock; }; -#ifdef CONFIG_SERIAL_8250_CONSOLE +#if defined(CONFIG_SERIAL_8250_CONSOLE ) && !defined(MODULE )static int __init uniphier_early_console_setup (struct earlycon_device *device,const char *options) {If my patch (https://patchwork.kernel.org/patch/8029331/) is accepted, this build error will be fixed as well. But I doubt it is accepted soon...
So, I am OK with this workaround to fix "make allmodconfig".
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Acked-by Masahiro Yamada <[email protected]>Good point. Adding the DT maintainers to Cc. Guys, any chance of you picking up Masahiro's patch for 4.5?
I will if you can update the commit log with the details here about it fixing an actual problem.
I did so in v2.
Thanks!
--
Best Regards
Masahiro Yamada
Signature · 2 lines
Best Regards Masahiro Yamada