Linux IIO development
 help / color / mirror / Atom feed
* IIO_BUFFER - IIO_TRIGGERED_BUFFER circular dependency
@ 2013-03-01  4:32 Guenter Roeck
  2013-03-01 13:38 ` Lars-Peter Clausen
  0 siblings, 1 reply; 7+ messages in thread
From: Guenter Roeck @ 2013-03-01  4:32 UTC (permalink / raw)
  To: linux-iio

Hi all,

IIO_TRIGGERED_BUFFER depends on IIO_BUFFER because of:

drivers/iio/industrialio-triggered-buffer.c:20:16: error:
‘iio_sw_buffer_preenable’ undeclared here (not in a function)

On the other side, it is often selected as follows.

	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)

For that reason, selecting IIO_BUFFER in the IIO_TRIGGERED_BUFFER declaration
results in a circular dependency. Sometimes the "if (IIO_BUFFER)" when selecting
IIO_TRIGGERED_BUFFER is missing, though, which can result in the compile error.

What is the proper solution ?
- Add "if (IIO_BUFFER)" whenever IIO_TRIGGERED_BUFFER is selected
or
- Remove "if (IIO_BUFFER)" from IIO_TRIGGERED_BUFFER selection and add "select
  IIO_BUFFER" to the IIO_TRIGGERED_BUFFER declaration

I would prefer the latter to solve the problem for good.

Thanks,
Guenter

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

end of thread, other threads:[~2013-03-02 16:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-01  4:32 IIO_BUFFER - IIO_TRIGGERED_BUFFER circular dependency Guenter Roeck
2013-03-01 13:38 ` Lars-Peter Clausen
2013-03-01 14:41   ` Guenter Roeck
2013-03-01 15:04     ` Lars-Peter Clausen
2013-03-01 17:20       ` Guenter Roeck
2013-03-02 16:36         ` Jonathan Cameron
2013-03-01 15:16     ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox