linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Javier Carrasco <javier.carrasco.cruz@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
	"Matti Vaittinen" <mazziesaccount@gmail.com>,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sa" <nuno.sa@analog.com>, "Dan Murphy" <dmurphy@ti.com>,
	"Sean Nyekjaer" <sean@geanix.com>,
	"Leonard Göhrs" <l.goehrs@pengutronix.de>,
	"Mihail Chindris" <mihail.chindris@analog.com>,
	"Alexandru Ardelean" <ardeleanalex@gmail.com>,
	"Gustavo Silva" <gustavograzs@gmail.com>,
	"Shoji Keita" <awaittrot@shjk.jp>,
	"Andrey Skvortsov" <andrej.skvortzov@gmail.com>,
	"Dalton Durst" <dalton@ubports.com>,
	"Icenowy Zheng" <icenowy@aosc.io>,
	"Andreas Klinger" <ak@it-klinger.de>,
	"Jonathan Cameron" <Jonathan.Cameron@huawei.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Ondrej Jirman" <megi@xff.cz>
Subject: Re: [PATCH 04/13] iio: adc: ti-ads8688: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
Date: Sat, 5 Oct 2024 20:21:06 +0200	[thread overview]
Message-ID: <34f22420-ec6b-438e-9edb-1aa7a837eb98@gmail.com> (raw)
In-Reply-To: <20241005184018.6b06e850@jic23-huawei>

On 05/10/2024 19:40, Jonathan Cameron wrote:
> On Thu, 03 Oct 2024 23:04:50 +0200
> Javier Carrasco <javier.carrasco.cruz@gmail.com> wrote:
> 
>> This driver makes use of triggered buffers, but does not select the
>> required modules.
>>
>> Fixes: 2a86487786b5 ("iio: adc: ti-ads8688: add trigger and buffer support")
>> Add the missing 'select IIO_BUFFER' and 'select IIO_TRIGGERED_BUFFER'.
> Fixes tag must be part of the tag block.
> 
> Also this one looks to be a false positive. The driver includes
> buffer.h but doesn't actually have buffered support.
> 

Are you sure? These are the errors I get when I compile the ti-ads8688.c:

ld: drivers/iio/adc/ti-ads8688.o: in function `ads8688_probe':
ti-ads8688.c:(.text+0x1cf): undefined reference to
`devm_iio_triggered_buffer_setup_ext'
ld: drivers/iio/adc/ti-ads8688.o: in function `ads8688_trigger_handler':
ti-ads8688.c:(.text+0x3be): undefined reference to `iio_push_to_buffers'
ld: ti-ads8688.c:(.text+0x3c9): undefined reference to
`iio_trigger_notify_done'
make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make[1]: *** [/home/jc/pw/linux/linux-next/Makefile:1173: vmlinux] Error 2
make: *** [Makefile:224: __sub-make] Error 2

And I see the offending functions in its code. Am I missing something
here or are we talking about different drivers?

>>
>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>> ---
>>  drivers/iio/adc/Kconfig | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
>> index 45872a4e2acf..e6be1f1ec79f 100644
>> --- a/drivers/iio/adc/Kconfig
>> +++ b/drivers/iio/adc/Kconfig
>> @@ -1483,6 +1483,8 @@ config TI_ADS8344
>>  config TI_ADS8688
>>  	tristate "Texas Instruments ADS8688"
>>  	depends on SPI
>> +	select IIO_BUFFER
>> +	select IIO_TRIGGERED_BUFFER
>>  	help
>>  	  If you say yes here you get support for Texas Instruments ADS8684 and
>>  	  and ADS8688 ADC chips
>>
> 


  reply	other threads:[~2024-10-05 18:21 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-03 21:04 [PATCH 00/13] iio: add missing select REMAP_SPI, IIO_BUFFER, and IIO_TRIGGERED_BUFFER Javier Carrasco
2024-10-03 21:04 ` [PATCH 01/13] iio: accel: kx022a: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig Javier Carrasco
2024-10-04  8:17   ` Matti Vaittinen
2024-10-05 17:47     ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 02/13] iio: adc: ad7944: " Javier Carrasco
2024-10-03 23:00   ` David Lechner
2024-10-05 17:48     ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 03/13] iio: adc: ti-ads124s08: " Javier Carrasco
2024-10-03 21:04 ` [PATCH 04/13] iio: adc: ti-ads8688: " Javier Carrasco
2024-10-04  6:40   ` Sean Nyekjaer
2024-10-05 17:40   ` Jonathan Cameron
2024-10-05 18:21     ` Javier Carrasco [this message]
2024-10-10 18:00       ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 05/13] iio: adc: ti-lmp92064: add missing select REGMAP_SPI " Javier Carrasco
2024-10-05 17:50   ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 06/13] iio: adc: ti-lmp92064: add missing select IIO_(TRIGGERED_)BUFFER " Javier Carrasco
2024-10-05 17:51   ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 07/13] iio: dac: ad3552r: " Javier Carrasco
2024-10-05 17:52   ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 08/13] iio: dac: ad5766: " Javier Carrasco
2024-10-05 17:53   ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 09/13] iio: chemical: ens160: " Javier Carrasco
2024-10-04 14:27   ` Gustavo Silva
2024-10-05 17:54     ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 10/13] iio: light: bu27008: " Javier Carrasco
2024-10-04  8:16   ` Matti Vaittinen
2024-10-05 17:56     ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 11/13] iio: magnetometer: af8133j: " Javier Carrasco
2024-10-04  8:58   ` Andrey Skvortsov
2024-10-05 17:57     ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 12/13] iio: pressure: bu1390: " Javier Carrasco
2024-10-04  8:16   ` Matti Vaittinen
2024-10-05 18:01   ` Jonathan Cameron
2024-10-05 18:12     ` Javier Carrasco
2024-10-06 11:13       ` Matti Vaittinen
2024-10-10 13:46     ` Andy Shevchenko
2024-10-10 17:54       ` Jonathan Cameron
2024-10-03 21:04 ` [PATCH 13/13] iio: proximity: mb1232: " Javier Carrasco
2024-10-05 18:03   ` Jonathan Cameron

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=34f22420-ec6b-438e-9edb-1aa7a837eb98@gmail.com \
    --to=javier.carrasco.cruz@gmail.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=ak@it-klinger.de \
    --cc=andrej.skvortzov@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=ardeleanalex@gmail.com \
    --cc=awaittrot@shjk.jp \
    --cc=dalton@ubports.com \
    --cc=dlechner@baylibre.com \
    --cc=dmurphy@ti.com \
    --cc=gustavograzs@gmail.com \
    --cc=icenowy@aosc.io \
    --cc=jic23@kernel.org \
    --cc=l.goehrs@pengutronix.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mazziesaccount@gmail.com \
    --cc=megi@xff.cz \
    --cc=mihail.chindris@analog.com \
    --cc=nuno.sa@analog.com \
    --cc=sean@geanix.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;
as well as URLs for NNTP newsgroup(s).