linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors
@ 2016-10-05 14:46 Mika Westerberg
  2016-10-09  7:47 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Mika Westerberg @ 2016-10-05 14:46 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
	Mika Westerberg, linux-iio

Commit 08e05d1fce5c ("ti-adc081c: Initial triggered buffer support") added
triggered buffer support but that also requires CONFIG_IIO_TRIGGERED_BUFFER,
otherwise we get errors from linker such as:

  drivers/built-in.o: In function `adc081c_remove':
  drivers/iio/adc/ti-adc081c.c:225: undefined reference to `iio_triggered_buffer_cleanup'

Fix these by explicitly selecting both CONFIG_IIO_TRIGGERED_BUFFER and
CONFIG_IIO_BUFFER in Kconfig for the driver.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/iio/adc/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 767577298ee3..375ba57bdfcd 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -400,6 +400,8 @@ config ROCKCHIP_SARADC
 config TI_ADC081C
 	tristate "Texas Instruments ADC081C/ADC101C/ADC121C family"
 	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  If you say yes here you get support for Texas Instruments ADC081C,
 	  ADC101C and ADC121C ADC chips.
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors
  2016-10-05 14:46 [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors Mika Westerberg
@ 2016-10-09  7:47 ` Jonathan Cameron
  2016-10-10  1:13   ` Fengguang Wu
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2016-10-09  7:47 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
	linux-iio, Fengguang Wu

On 05/10/16 15:46, Mika Westerberg wrote:
> Commit 08e05d1fce5c ("ti-adc081c: Initial triggered buffer support") added
> triggered buffer support but that also requires CONFIG_IIO_TRIGGERED_BUFFER,
> otherwise we get errors from linker such as:
> 
>   drivers/built-in.o: In function `adc081c_remove':
>   drivers/iio/adc/ti-adc081c.c:225: undefined reference to `iio_triggered_buffer_cleanup'
> 
> Fix these by explicitly selecting both CONFIG_IIO_TRIGGERED_BUFFER and
> CONFIG_IIO_BUFFER in Kconfig for the driver.
> 
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Applied to the fixes-togreg-post-rc1 branch of iio.git which I'll send
a pull request for once the merge window is closed. Strange this one
got through the autobuilders (less strange that it snuck past me
reviewing it ;(

Fengguang, any thoughts?

Thanks,

Jonathan
> ---
>  drivers/iio/adc/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index 767577298ee3..375ba57bdfcd 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -400,6 +400,8 @@ config ROCKCHIP_SARADC
>  config TI_ADC081C
>  	tristate "Texas Instruments ADC081C/ADC101C/ADC121C family"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  If you say yes here you get support for Texas Instruments ADC081C,
>  	  ADC101C and ADC121C ADC chips.
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors
  2016-10-09  7:47 ` Jonathan Cameron
@ 2016-10-10  1:13   ` Fengguang Wu
  2016-10-10  5:40     ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Fengguang Wu @ 2016-10-10  1:13 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Mika Westerberg, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, linux-iio

On Sun, Oct 09, 2016 at 08:47:11AM +0100, Jonathan Cameron wrote:
>On 05/10/16 15:46, Mika Westerberg wrote:
>> Commit 08e05d1fce5c ("ti-adc081c: Initial triggered buffer support") added
>> triggered buffer support but that also requires CONFIG_IIO_TRIGGERED_BUFFER,
>> otherwise we get errors from linker such as:
>>
>>   drivers/built-in.o: In function `adc081c_remove':
>>   drivers/iio/adc/ti-adc081c.c:225: undefined reference to `iio_triggered_buffer_cleanup'
>>
>> Fix these by explicitly selecting both CONFIG_IIO_TRIGGERED_BUFFER and
>> CONFIG_IIO_BUFFER in Kconfig for the driver.
>>
>> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>Applied to the fixes-togreg-post-rc1 branch of iio.git which I'll send
>a pull request for once the merge window is closed. Strange this one
>got through the autobuilders (less strange that it snuck past me
>reviewing it ;(
>
>Fengguang, any thoughts?

Sorry I find no log for that error and noticed 08e05d1fce5c is half
year old which is not contained in any recent updated trees. Many
things could have been changed/fixed during the time -- if you look at

https://lists.01.org/pipermail/kbuild-all/2016-May/thread.html

There are significant less error reports in May, which probably
impacts late April as well -- at the time the commit is introduced.
Then the problems are discovered and the report number is restored to
over 1000 in June.

Thanks,
Fengguang

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors
  2016-10-10  1:13   ` Fengguang Wu
@ 2016-10-10  5:40     ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2016-10-10  5:40 UTC (permalink / raw)
  To: Fengguang Wu, Jonathan Cameron
  Cc: Mika Westerberg, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, linux-iio



On 10 October 2016 02:13:21 BST, Fengguang Wu <fengguang.wu@intel.com> wrote:
>On Sun, Oct 09, 2016 at 08:47:11AM +0100, Jonathan Cameron wrote:
>>On 05/10/16 15:46, Mika Westerberg wrote:
>>> Commit 08e05d1fce5c ("ti-adc081c: Initial triggered buffer support")
>added
>>> triggered buffer support but that also requires
>CONFIG_IIO_TRIGGERED_BUFFER,
>>> otherwise we get errors from linker such as:
>>>
>>>   drivers/built-in.o: In function `adc081c_remove':
>>>   drivers/iio/adc/ti-adc081c.c:225: undefined reference to
>`iio_triggered_buffer_cleanup'
>>>
>>> Fix these by explicitly selecting both CONFIG_IIO_TRIGGERED_BUFFER
>and
>>> CONFIG_IIO_BUFFER in Kconfig for the driver.
>>>
>>> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>>Applied to the fixes-togreg-post-rc1 branch of iio.git which I'll send
>>a pull request for once the merge window is closed. Strange this one
>>got through the autobuilders (less strange that it snuck past me
>>reviewing it ;(
>>
>>Fengguang, any thoughts?
>
>Sorry I find no log for that error and noticed 08e05d1fce5c is half
>year old which is not contained in any recent updated trees. Many
>things could have been changed/fixed during the time -- if you look at
>
>https://lists.01.org/pipermail/kbuild-all/2016-May/thread.html
>
>There are significant less error reports in May, which probably
>impacts late April as well -- at the time the commit is introduced.
>Then the problems are discovered and the report number is restored to
>over 1000 in June.
>
>Thanks,
>Fengguang

Cool. I hadn't registered it was that old.  

Thank

Jonathan

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-10  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 14:46 [PATCH] iio: adc: ti-adc081c: Select IIO_TRIGGERED_BUFFER to prevent build errors Mika Westerberg
2016-10-09  7:47 ` Jonathan Cameron
2016-10-10  1:13   ` Fengguang Wu
2016-10-10  5:40     ` Jonathan Cameron

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).