[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201904141515.fXwAxdo4%lkp@intel.com>
Date: Sun, 14 Apr 2019 15:29:17 +0800
From: kbuild test robot <lkp@...el.com>
To: Tomasz Duszynski <tduszyns@...il.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Jonathan Cameron <Jonathan.Cameron@...wei.com>
Subject: drivers/iio/chemical/pms7003.c:315: undefined reference to
`devm_iio_triggered_buffer_setup'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4443f8e6ac7755cd775c70d08be8042dc2f936cb
commit: a1d642266c147b9e34bd683bed1b7a935cdbfb8c iio: chemical: add support for Plantower PMS7003 sensor
date: 9 weeks ago
config: x86_64-randconfig-s3-04141349 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout a1d642266c147b9e34bd683bed1b7a935cdbfb8c
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/iio/chemical/pms7003.o: In function `pms7003_probe':
>> drivers/iio/chemical/pms7003.c:315: undefined reference to `devm_iio_triggered_buffer_setup'
vim +315 drivers/iio/chemical/pms7003.c
262
263 static int pms7003_probe(struct serdev_device *serdev)
264 {
265 struct pms7003_state *state;
266 struct iio_dev *indio_dev;
267 int ret;
268
269 indio_dev = devm_iio_device_alloc(&serdev->dev, sizeof(*state));
270 if (!indio_dev)
271 return -ENOMEM;
272
273 state = iio_priv(indio_dev);
274 serdev_device_set_drvdata(serdev, indio_dev);
275 state->serdev = serdev;
276 indio_dev->dev.parent = &serdev->dev;
277 indio_dev->info = &pms7003_info;
278 indio_dev->name = PMS7003_DRIVER_NAME;
279 indio_dev->channels = pms7003_channels,
280 indio_dev->num_channels = ARRAY_SIZE(pms7003_channels);
281 indio_dev->modes = INDIO_DIRECT_MODE;
282 indio_dev->available_scan_masks = pms7003_scan_masks;
283
284 mutex_init(&state->lock);
285 init_completion(&state->frame_ready);
286
287 serdev_device_set_client_ops(serdev, &pms7003_serdev_ops);
288 ret = devm_serdev_device_open(&serdev->dev, serdev);
289 if (ret)
290 return ret;
291
292 serdev_device_set_baudrate(serdev, 9600);
293 serdev_device_set_flow_control(serdev, false);
294
295 ret = serdev_device_set_parity(serdev, SERDEV_PARITY_NONE);
296 if (ret)
297 return ret;
298
299 ret = pms7003_do_cmd(state, CMD_WAKEUP);
300 if (ret) {
301 dev_err(&serdev->dev, "failed to wakeup sensor\n");
302 return ret;
303 }
304
305 ret = pms7003_do_cmd(state, CMD_ENTER_PASSIVE_MODE);
306 if (ret) {
307 dev_err(&serdev->dev, "failed to enter passive mode\n");
308 return ret;
309 }
310
311 ret = devm_add_action_or_reset(&serdev->dev, pms7003_stop, state);
312 if (ret)
313 return ret;
314
> 315 ret = devm_iio_triggered_buffer_setup(&serdev->dev, indio_dev, NULL,
316 pms7003_trigger_handler, NULL);
317 if (ret)
318 return ret;
319
320 return devm_iio_device_register(&serdev->dev, indio_dev);
321 }
322
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (24869 bytes)
Powered by blists - more mailing lists