From: kernel test robot <lkp@intel.com>
To: Markus Stockhausen <markus.stockhausen@gmx.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] i2c: i2c-gpio Enhance driver for buses with shared SCL
Date: Sat, 16 May 2026 18:11:24 +0800 [thread overview]
Message-ID: <202605161836.Pd84kaCN-lkp@intel.com> (raw)
In-Reply-To: <20260514092042.3265986-1-markus.stockhausen@gmx.de>
Hi Markus,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on andi-shyti/i2c/i2c-host]
[also build test ERROR on linus/master v7.1-rc3 next-20260508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Markus-Stockhausen/i2c-i2c-gpio-Enhance-driver-for-buses-with-shared-SCL/20260514-233812
base: https://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git i2c/i2c-host
patch link: https://lore.kernel.org/r/20260514092042.3265986-1-markus.stockhausen%40gmx.de
patch subject: [RFC PATCH] i2c: i2c-gpio Enhance driver for buses with shared SCL
config: um-randconfig-r073-20260516 (https://download.01.org/0day-ci/archive/20260516/202605161836.Pd84kaCN-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9185-gbcc58b9c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605161836.Pd84kaCN-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/202605161836.Pd84kaCN-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/i2c/busses/i2c-gpio.c: In function 'i2c_gpio_fi_act_on_scl_irq':
>> drivers/i2c/busses/i2c-gpio.c:197:41: error: passing argument 1 of 'gpiod_to_irq' from incompatible pointer type [-Wincompatible-pointer-types]
197 | int ret, irq = gpiod_to_irq(priv->scl);
| ~~~~^~~~~
| |
| struct i2c_gpio_scl_data *
In file included from drivers/i2c/busses/i2c-gpio.c:10:
include/linux/gpio/consumer.h:169:42: note: expected 'const struct gpio_desc *' but argument is of type 'struct i2c_gpio_scl_data *'
169 | int gpiod_to_irq(const struct gpio_desc *desc);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> drivers/i2c/busses/i2c-gpio.c:204:41: error: passing argument 1 of 'gpiod_direction_input' from incompatible pointer type [-Wincompatible-pointer-types]
204 | ret = gpiod_direction_input(priv->scl);
| ~~~~^~~~~
| |
| struct i2c_gpio_scl_data *
include/linux/gpio/consumer.h:114:45: note: expected 'struct gpio_desc *' but argument is of type 'struct i2c_gpio_scl_data *'
114 | int gpiod_direction_input(struct gpio_desc *desc);
| ~~~~~~~~~~~~~~~~~~^~~~
>> drivers/i2c/busses/i2c-gpio.c:219:42: error: passing argument 1 of 'gpiod_direction_output' from incompatible pointer type [-Wincompatible-pointer-types]
219 | ret = gpiod_direction_output(priv->scl, 1) ?: ret;
| ~~~~^~~~~
| |
| struct i2c_gpio_scl_data *
include/linux/gpio/consumer.h:115:46: note: expected 'struct gpio_desc *' but argument is of type 'struct i2c_gpio_scl_data *'
115 | int gpiod_direction_output(struct gpio_desc *desc, int value);
| ~~~~~~~~~~~~~~~~~~^~~~
vim +/gpiod_to_irq +197 drivers/i2c/busses/i2c-gpio.c
bbe899700a44af Wolfram Sang 2018-06-29 193
63e57b6f191db9 Wolfram Sang 2019-02-19 194 static int i2c_gpio_fi_act_on_scl_irq(struct i2c_gpio_private_data *priv,
63e57b6f191db9 Wolfram Sang 2019-02-19 195 irqreturn_t handler(int, void*))
63e57b6f191db9 Wolfram Sang 2019-02-19 196 {
63e57b6f191db9 Wolfram Sang 2019-02-19 @197 int ret, irq = gpiod_to_irq(priv->scl);
63e57b6f191db9 Wolfram Sang 2019-02-19 198
63e57b6f191db9 Wolfram Sang 2019-02-19 199 if (irq < 0)
63e57b6f191db9 Wolfram Sang 2019-02-19 200 return irq;
63e57b6f191db9 Wolfram Sang 2019-02-19 201
63e57b6f191db9 Wolfram Sang 2019-02-19 202 i2c_lock_bus(&priv->adap, I2C_LOCK_ROOT_ADAPTER);
63e57b6f191db9 Wolfram Sang 2019-02-19 203
63e57b6f191db9 Wolfram Sang 2019-02-19 @204 ret = gpiod_direction_input(priv->scl);
63e57b6f191db9 Wolfram Sang 2019-02-19 205 if (ret)
63e57b6f191db9 Wolfram Sang 2019-02-19 206 goto unlock;
63e57b6f191db9 Wolfram Sang 2019-02-19 207
63e57b6f191db9 Wolfram Sang 2019-02-19 208 reinit_completion(&priv->scl_irq_completion);
63e57b6f191db9 Wolfram Sang 2019-02-19 209
63e57b6f191db9 Wolfram Sang 2019-02-19 210 ret = request_irq(irq, handler, IRQF_TRIGGER_FALLING,
63e57b6f191db9 Wolfram Sang 2019-02-19 211 "i2c_gpio_fault_injector_scl_irq", priv);
63e57b6f191db9 Wolfram Sang 2019-02-19 212 if (ret)
63e57b6f191db9 Wolfram Sang 2019-02-19 213 goto output;
63e57b6f191db9 Wolfram Sang 2019-02-19 214
63e57b6f191db9 Wolfram Sang 2019-02-19 215 wait_for_completion_interruptible(&priv->scl_irq_completion);
63e57b6f191db9 Wolfram Sang 2019-02-19 216
63e57b6f191db9 Wolfram Sang 2019-02-19 217 free_irq(irq, priv);
63e57b6f191db9 Wolfram Sang 2019-02-19 218 output:
63e57b6f191db9 Wolfram Sang 2019-02-19 @219 ret = gpiod_direction_output(priv->scl, 1) ?: ret;
63e57b6f191db9 Wolfram Sang 2019-02-19 220 unlock:
63e57b6f191db9 Wolfram Sang 2019-02-19 221 i2c_unlock_bus(&priv->adap, I2C_LOCK_ROOT_ADAPTER);
63e57b6f191db9 Wolfram Sang 2019-02-19 222
63e57b6f191db9 Wolfram Sang 2019-02-19 223 return ret;
63e57b6f191db9 Wolfram Sang 2019-02-19 224 }
63e57b6f191db9 Wolfram Sang 2019-02-19 225
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-05-16 10:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-14 9:20 [RFC PATCH] i2c: i2c-gpio Enhance driver for buses with shared SCL Markus Stockhausen
2026-05-16 10:11 ` kernel test robot [this message]
2026-05-16 11:58 ` kernel test robot
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=202605161836.Pd84kaCN-lkp@intel.com \
--to=lkp@intel.com \
--cc=markus.stockhausen@gmx.de \
--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.