Skip to contentSkip to conversation

staging:iio:adis16260: select IIO_ADIS_LIB to fix build error

PATCH In review Yuanhan Liu 2 participants 3 messages Dec 31, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:iio:adis16260: select IIO_ADIS_LIB to fix build error

Commit 9d5e9fdf turned the code to use adis library, so it depends on adis lib. But it forgot to select it at Kconfig file. Thus if adis is not enabled, it will produce following build errros(catched by Fengguang's 0-DAY kernel build testing system):
ERROR: "adis_initial_startup" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_init" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_write_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_read_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_single_conversion" [drivers/staging/iio/gyro/adis16260.ko] undefined!

Selecting IIO_ADIS_LIB at Kconfig file fixes this issue.

Cc Lars-Peter Clausen <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/iio/gyro/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/gyro/Kconfig +1 -0
index ea295b2..476207a 100644
@@ -27,6 +27,7 @@ config ADIS16130
 config ADIS16260
 	tristate "Analog Devices ADIS16260 Digital Gyroscope Sensor SPI driver"
 	depends on SPI
+	select IIO_ADIS_LIB
 	select IIO_TRIGGER if IIO_BUFFER
 	select IIO_SW_RING if IIO_BUFFER
 	help
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 10 lines · Yuanhan Liu

Commit 9d5e9fdf turned the code to use adis library, so it depends on adis lib. But it forgot to select it at Kconfig file. Thus if adis is not enabled, it will produce following build errros(catched by Fengguang's 0-DAY kernel build testing system):
ERROR: "adis_initial_startup" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_init" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_write_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_read_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_single_conversion" [drivers/staging/iio/gyro/adis16260.ko] undefined!

Quoted 7 lines

Selecting IIO_ADIS_LIB at Kconfig file fixes this issue.

Cc Lars-Peter Clausen <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

Hi,

Thanks. But I already sent a similar patch some time ago. See
http://www.spinics.net/lists/linux-iio/msg07128.html

- Lars

Quoted 16 lines
---
 drivers/staging/iio/gyro/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/gyro/Kconfig +1 -0
index ea295b2..476207a 100644
@@ -27,6 +27,7 @@ config ADIS16130
 config ADIS16260
 	tristate "Analog Devices ADIS16260 Digital Gyroscope Sensor SPI driver"
 	depends on SPI
+	select IIO_ADIS_LIB
 	select IIO_TRIGGER if IIO_BUFFER
 	select IIO_SW_RING if IIO_BUFFER
 	help
#2 lore raw
Quoted 19 lines · Lars-Peter Clausen
Quoted 10 lines · Yuanhan Liu

Commit 9d5e9fdf turned the code to use adis library, so it depends on adis lib. But it forgot to select it at Kconfig file. Thus if adis is not enabled, it will produce following build errros(catched by Fengguang's 0-DAY kernel build testing system):
ERROR: "adis_initial_startup" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_init" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_write_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_read_reg" [drivers/staging/iio/gyro/adis16260.ko] undefined!
ERROR: "adis_single_conversion" [drivers/staging/iio/gyro/adis16260.ko] undefined!

Quoted 7 lines

Selecting IIO_ADIS_LIB at Kconfig file fixes this issue.

Cc Lars-Peter Clausen <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Quoted 4 lines

Hi,

Thanks. But I already sent a similar patch some time ago. See
http://www.spinics.net/lists/linux-iio/msg07128.html

Got it, and sorry for the duplicate patch.

	--yliu