* [jirislaby:devel 12/45] drivers/tty/serial/8250/8250_airoha.c:150:6: error: incompatible pointer to integer conversion assigning to 'int' from 'struct uart_8250_port *'
@ 2026-10-07 12:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-07 12:35 UTC (permalink / raw)
To: Jiri Slaby (SUSE); +Cc: llvm, 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: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261007/202610072051.56mbj5Nv-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 80cd965b6323b208519f8ab1d5ee86e4ea9862f4)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610072051.56mbj5Nv-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/202610072051.56mbj5Nv-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/tty/serial/8250/8250_airoha.c:150:6: error: incompatible pointer to integer conversion assigning to 'int' from 'struct uart_8250_port *' [-Wint-conversion]
150 | ret = serial8250_register_8250_port(&uart);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/tty/serial/8250/8250_airoha.c:164:29: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct uart_8250_port *' [-Wint-conversion]
164 | serial8250_unregister_port(priv->line);
| ^~~~~~~~~~
include/linux/serial_8250.h:190:56: note: passing argument to parameter here
190 | void serial8250_unregister_port(struct uart_8250_port *);
| ^
2 errors generated.
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 12:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 12:35 [jirislaby:devel 12/45] drivers/tty/serial/8250/8250_airoha.c:150:6: error: incompatible pointer to integer conversion assigning to 'int' from 'struct uart_8250_port *' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox