public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tomasz Duszynski <tduszyns@gmail.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: drivers/iio/chemical/pms7003.c:315: undefined reference to `devm_iio_triggered_buffer_setup'
Date: Sun, 14 Apr 2019 15:29:17 +0800	[thread overview]
Message-ID: <201904141515.fXwAxdo4%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2923 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24869 bytes --]

                 reply	other threads:[~2019-04-14  7:30 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=201904141515.fXwAxdo4%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tduszyns@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox