From: kernel test robot <lkp@intel.com>
To: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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 *'
Date: Wed, 07 Oct 2026 20:35:14 +0800 [thread overview]
Message-ID: <202610072051.56mbj5Nv-lkp@intel.com> (raw)
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
reply other threads:[~2026-10-07 12:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610072051.56mbj5Nv-lkp@intel.com \
--to=lkp@intel.com \
--cc=jirislaby@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.