* [jirislaby:devel 12/45] drivers/tty/serial/8250/8250_airoha.c:150:13: warning: assignment to 'int' from 'struct uart_8250_port *' makes integer from pointer without a cast
@ 2026-10-07 13:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-07 13:28 UTC (permalink / raw)
To: Jiri Slaby (SUSE); +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: 576b8c5d619ed8abcc9bd2106e527d2c3aba9b2d
commit: 52a3eb3685b86cd5b44146d29ab2ec06e6f813c3 [12/45] serial8250 port operations work on struct uart_8250_port
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20261007/202610072155.NzOS13B3-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610072155.NzOS13B3-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610072155.NzOS13B3-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/tty/serial/8250/8250_airoha.c: In function 'airoha_8250_probe':
>> drivers/tty/serial/8250/8250_airoha.c:150:13: warning: assignment to 'int' from 'struct uart_8250_port *' makes integer from pointer without a cast [-Wint-conversion]
150 | ret = serial8250_register_8250_port(&uart);
| ^
drivers/tty/serial/8250/8250_airoha.c: In function 'airoha_8250_remove':
>> drivers/tty/serial/8250/8250_airoha.c:164:40: warning: passing argument 1 of 'serial8250_unregister_port' makes pointer from integer without a cast [-Wint-conversion]
164 | serial8250_unregister_port(priv->line);
| ~~~~^~~~~~
| |
| int
In file included from drivers/tty/serial/8250/8250_airoha.c:18:
include/linux/serial_8250.h:190:33: note: expected 'struct uart_8250_port *' but argument is of type 'int'
190 | void serial8250_unregister_port(struct uart_8250_port *);
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +150 drivers/tty/serial/8250/8250_airoha.c
92a8133c44de33 Christian Marangi 2026-08-11 117
92a8133c44de33 Christian Marangi 2026-08-11 118 static int airoha_8250_probe(struct platform_device *pdev)
92a8133c44de33 Christian Marangi 2026-08-11 119 {
92a8133c44de33 Christian Marangi 2026-08-11 120 struct uart_8250_port uart = { };
92a8133c44de33 Christian Marangi 2026-08-11 121 struct device *dev = &pdev->dev;
92a8133c44de33 Christian Marangi 2026-08-11 122 struct airoha_8250_priv *priv;
92a8133c44de33 Christian Marangi 2026-08-11 123 struct resource *res;
92a8133c44de33 Christian Marangi 2026-08-11 124 int ret;
92a8133c44de33 Christian Marangi 2026-08-11 125
92a8133c44de33 Christian Marangi 2026-08-11 126 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
92a8133c44de33 Christian Marangi 2026-08-11 127 if (!res)
92a8133c44de33 Christian Marangi 2026-08-11 128 return dev_err_probe(dev, -EINVAL, "invalid address\n");
92a8133c44de33 Christian Marangi 2026-08-11 129
92a8133c44de33 Christian Marangi 2026-08-11 130 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
92a8133c44de33 Christian Marangi 2026-08-11 131 if (!priv)
92a8133c44de33 Christian Marangi 2026-08-11 132 return -ENOMEM;
92a8133c44de33 Christian Marangi 2026-08-11 133
92a8133c44de33 Christian Marangi 2026-08-11 134 uart.port.dev = dev;
92a8133c44de33 Christian Marangi 2026-08-11 135 if (device_is_compatible(dev, "airoha,an7581-hsuart"))
92a8133c44de33 Christian Marangi 2026-08-11 136 uart.port.type = UART_PORT_AIROHA_HS;
92a8133c44de33 Christian Marangi 2026-08-11 137 else
92a8133c44de33 Christian Marangi 2026-08-11 138 uart.port.type = UART_PORT_AIROHA;
92a8133c44de33 Christian Marangi 2026-08-11 139 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT |
92a8133c44de33 Christian Marangi 2026-08-11 140 UPF_FIXED_TYPE | UPF_IOREMAP;
92a8133c44de33 Christian Marangi 2026-08-11 141 uart.port.set_divisor = airoha_set_divisor;
92a8133c44de33 Christian Marangi 2026-08-11 142 uart.port.get_divisor = airoha_get_divisor;
92a8133c44de33 Christian Marangi 2026-08-11 143 uart.port.mapbase = res->start;
92a8133c44de33 Christian Marangi 2026-08-11 144 uart.port.mapsize = resource_size(res);
92a8133c44de33 Christian Marangi 2026-08-11 145
92a8133c44de33 Christian Marangi 2026-08-11 146 ret = uart_read_and_validate_port_properties(&uart.port);
92a8133c44de33 Christian Marangi 2026-08-11 147 if (ret)
92a8133c44de33 Christian Marangi 2026-08-11 148 return ret;
92a8133c44de33 Christian Marangi 2026-08-11 149
92a8133c44de33 Christian Marangi 2026-08-11 @150 ret = serial8250_register_8250_port(&uart);
92a8133c44de33 Christian Marangi 2026-08-11 151 if (ret < 0)
92a8133c44de33 Christian Marangi 2026-08-11 152 return ret;
92a8133c44de33 Christian Marangi 2026-08-11 153
92a8133c44de33 Christian Marangi 2026-08-11 154 priv->line = ret;
92a8133c44de33 Christian Marangi 2026-08-11 155 platform_set_drvdata(pdev, priv);
92a8133c44de33 Christian Marangi 2026-08-11 156
92a8133c44de33 Christian Marangi 2026-08-11 157 return 0;
92a8133c44de33 Christian Marangi 2026-08-11 158 }
92a8133c44de33 Christian Marangi 2026-08-11 159
92a8133c44de33 Christian Marangi 2026-08-11 160 static void airoha_8250_remove(struct platform_device *ofdev)
92a8133c44de33 Christian Marangi 2026-08-11 161 {
92a8133c44de33 Christian Marangi 2026-08-11 162 struct airoha_8250_priv *priv = platform_get_drvdata(ofdev);
92a8133c44de33 Christian Marangi 2026-08-11 163
92a8133c44de33 Christian Marangi 2026-08-11 @164 serial8250_unregister_port(priv->line);
92a8133c44de33 Christian Marangi 2026-08-11 165 }
92a8133c44de33 Christian Marangi 2026-08-11 166
:::::: The code at line 150 was first introduced by commit
:::::: 92a8133c44de3340a35d638c0458886e633ba98c serial: 8250: Add Airoha SoC UART and HSUART support
:::::: TO: Christian Marangi <ansuelsmth@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 13:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 13:28 [jirislaby:devel 12/45] drivers/tty/serial/8250/8250_airoha.c:150:13: warning: assignment to 'int' from 'struct uart_8250_port *' makes integer from pointer without a cast kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.