From: kernel test robot <lkp@intel.com>
To: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Hans Verkuil <hverkuil@kernel.org>
Subject: drivers/media/i2c/max9286.c:1206:undefined reference to `gpiochip_get_data'
Date: Sun, 20 Sep 2026 17:01:44 +0800 [thread overview]
Message-ID: <202609201612.LAlHBtN0-lkp@intel.com> (raw)
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
reply other threads:[~2026-09-20 9:02 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=202609201612.LAlHBtN0-lkp@intel.com \
--to=lkp@intel.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=hverkuil@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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.