mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/media/i2c/max9286.c:1206:undefined reference to `gpiochip_get_data'
@ 2026-09-20  9:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-20  9:01 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: oe-kbuild-all, linux-kernel, Hans Verkuil

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f259f446f5198d98e13756d2cd531812a0ad3064
commit: 2fc030f9ff287efc4510f4ae5efee0f23e64b608 media: i2c: drop unneeded dependencies on OF_GPIO
date:   5 months ago
config: x86_64-randconfig-1006-20260920 (https://download.01.org/0day-ci/archive/20260920/202609201612.LAlHBtN0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260920/202609201612.LAlHBtN0-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
| Fixes: 2fc030f9ff28 ("media: i2c: drop unneeded dependencies on OF_GPIO")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609201612.LAlHBtN0-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/media/i2c/max9286.o: in function `max9286_gpiochip_get':
>> drivers/media/i2c/max9286.c:1206:(.text+0x1318): undefined reference to `gpiochip_get_data'
   ld: drivers/media/i2c/max9286.o: in function `max9286_gpiochip_set':
   drivers/media/i2c/max9286.c:1199:(.text+0x13dc): undefined reference to `gpiochip_get_data'
   ld: drivers/media/i2c/max9286.o: in function `max9286_register_gpio':
>> drivers/media/i2c/max9286.c:1227:(.text+0x47c5): undefined reference to `devm_gpiochip_add_data_with_key'


vim +1206 drivers/media/i2c/max9286.c

c9352df7139bc5 Jacopo Mondi        2021-12-17  1203  
c9352df7139bc5 Jacopo Mondi        2021-12-17  1204  static int max9286_gpiochip_get(struct gpio_chip *chip, unsigned int offset)
66d8c9d2422da2 Kieran Bingham      2020-06-12  1205  {
66d8c9d2422da2 Kieran Bingham      2020-06-12 @1206  	struct max9286_priv *priv = gpiochip_get_data(chip);
66d8c9d2422da2 Kieran Bingham      2020-06-12  1207  
10c85e00f35689 Dmitry Torokhov     2026-02-18  1208  	return !!(priv->gpio_state & BIT(offset));
66d8c9d2422da2 Kieran Bingham      2020-06-12  1209  }
66d8c9d2422da2 Kieran Bingham      2020-06-12  1210  
66d8c9d2422da2 Kieran Bingham      2020-06-12  1211  static int max9286_register_gpio(struct max9286_priv *priv)
66d8c9d2422da2 Kieran Bingham      2020-06-12  1212  {
66d8c9d2422da2 Kieran Bingham      2020-06-12  1213  	struct device *dev = &priv->client->dev;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1214  	struct gpio_chip *gpio = &priv->gpio;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1215  	int ret;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1216  
66d8c9d2422da2 Kieran Bingham      2020-06-12  1217  	/* Configure the GPIO */
66d8c9d2422da2 Kieran Bingham      2020-06-12  1218  	gpio->label = dev_name(dev);
66d8c9d2422da2 Kieran Bingham      2020-06-12  1219  	gpio->parent = dev;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1220  	gpio->owner = THIS_MODULE;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1221  	gpio->ngpio = 2;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1222  	gpio->base = -1;
d9d87d90cc0b10 Bartosz Golaszewski 2025-07-17  1223  	gpio->set = max9286_gpiochip_set;
c9352df7139bc5 Jacopo Mondi        2021-12-17  1224  	gpio->get = max9286_gpiochip_get;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1225  	gpio->can_sleep = true;
66d8c9d2422da2 Kieran Bingham      2020-06-12  1226  
c9352df7139bc5 Jacopo Mondi        2021-12-17 @1227  	ret = devm_gpiochip_add_data(dev, gpio, priv);
c9352df7139bc5 Jacopo Mondi        2021-12-17  1228  	if (ret)
c9352df7139bc5 Jacopo Mondi        2021-12-17  1229  		dev_err(dev, "Unable to create gpio_chip\n");
c9352df7139bc5 Jacopo Mondi        2021-12-17  1230  
c9352df7139bc5 Jacopo Mondi        2021-12-17  1231  	return ret;
c9352df7139bc5 Jacopo Mondi        2021-12-17  1232  }
c9352df7139bc5 Jacopo Mondi        2021-12-17  1233  

:::::: The code at line 1206 was first introduced by commit
:::::: 66d8c9d2422da21ed41f75c03ba0685987b65fe0 media: i2c: Add MAX9286 driver

:::::: TO: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@kernel.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-09-20  9:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20  9:01 drivers/media/i2c/max9286.c:1206:undefined reference to `gpiochip_get_data' 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

all inboxes | Powered by JetHome®