[PATCH] tty: serial: ip22zilog: Fix section mispatch warning

Thomas Bogendoerfer posted 1 patch 2 months, 1 week ago
drivers/tty/serial/ip22zilog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] tty: serial: ip22zilog: Fix section mispatch warning
Posted by Thomas Bogendoerfer 2 months, 1 week ago
ip22zilog_prepare() is now called by driver probe routine, so it
shouldn't be in the __init section any longer.

Fixes: 3fc36ae6abd2 ("tty: serial: ip22zilog: Use platform device for probing")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604020945.c9jAvCPs-lkp@intel.com/
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
 drivers/tty/serial/ip22zilog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/ip22zilog.c b/drivers/tty/serial/ip22zilog.c
index 6e19c6713849..a12101dc0554 100644
--- a/drivers/tty/serial/ip22zilog.c
+++ b/drivers/tty/serial/ip22zilog.c
@@ -1025,7 +1025,7 @@ static struct uart_driver ip22zilog_reg = {
 #endif
 };
 
-static void __init ip22zilog_prepare(struct uart_ip22zilog_port *up)
+static void ip22zilog_prepare(struct uart_ip22zilog_port *up)
 {
 	unsigned char sysrq_on = IS_ENABLED(CONFIG_SERIAL_IP22_ZILOG_CONSOLE);
 	int brg;
-- 
2.43.0
Re: [PATCH] tty: serial: ip22zilog: Fix section mispatch warning
Posted by Randy Dunlap 2 months, 1 week ago

s/mispatch/mismatch/ in $Subject.

On 4/2/26 3:21 AM, Thomas Bogendoerfer wrote:
> ip22zilog_prepare() is now called by driver probe routine, so it
> shouldn't be in the __init section any longer.
> 
> Fixes: 3fc36ae6abd2 ("tty: serial: ip22zilog: Use platform device for probing")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202604020945.c9jAvCPs-lkp@intel.com/
> Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.

> ---
>  drivers/tty/serial/ip22zilog.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serial/ip22zilog.c b/drivers/tty/serial/ip22zilog.c
> index 6e19c6713849..a12101dc0554 100644
> --- a/drivers/tty/serial/ip22zilog.c
> +++ b/drivers/tty/serial/ip22zilog.c
> @@ -1025,7 +1025,7 @@ static struct uart_driver ip22zilog_reg = {
>  #endif
>  };
>  
> -static void __init ip22zilog_prepare(struct uart_ip22zilog_port *up)
> +static void ip22zilog_prepare(struct uart_ip22zilog_port *up)
>  {
>  	unsigned char sysrq_on = IS_ENABLED(CONFIG_SERIAL_IP22_ZILOG_CONSOLE);
>  	int brg;

-- 
~Randy