Skip to contentSkip to conversation

iio: imu: bno055: Fix missing Kconfig dependencies

PATCH In review Jonathan Cameron 2 participants 3 messages Sep 3, 2023 – Sep 10, 2023 IIO

lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 iio: imu: bno055: Fix missing Kconfig dependencies

From: Jonathan Cameron <[email protected]>

This driver uses IIO triggered buffers so it needs to select them in Kconfig.

on riscv-32bit:

/opt/crosstool/gcc-13.2.0-nolibc/riscv32-linux/bin/riscv32-linux-ld: drivers/iio/imu/bno055/bno055.o: in function `.L367':
bno055.c:(.text+0x2c96): undefined reference to `devm_iio_triggered_buffer_setup_ext'

---
 drivers/iio/imu/bno055/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/imu/bno055/Kconfig +2 -0
index fa79b1ac4f85..83e53acfbe88 100644
@@ -2,6 +2,8 @@
 
 config BOSCH_BNO055
 	tristate
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 
 config BOSCH_BNO055_SERIAL
 	tristate "Bosch BNO055 attached via UART"
Signature · 1 line
2.42.0
Acked-by Tested-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

This driver uses IIO triggered buffers so it needs to select them in Kconfig.

on riscv-32bit:

Quoted 7 lines

/opt/crosstool/gcc-13.2.0-nolibc/riscv32-linux/bin/riscv32-linux-ld: drivers/iio/imu/bno055/bno055.o: in function `.L367':
bno055.c:(.text+0x2c96): undefined reference to `devm_iio_triggered_buffer_setup_ext'

Thanks.

Quoted 17 lines
---
 drivers/iio/imu/bno055/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/imu/bno055/Kconfig +2 -0
index fa79b1ac4f85..83e53acfbe88 100644
@@ -2,6 +2,8 @@
 
 config BOSCH_BNO055
 	tristate
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 
 config BOSCH_BNO055_SERIAL
 	tristate "Bosch BNO055 attached via UART"
Signature · 1 line
~Randy
author maintainer Applied
#2 lore raw
Quoted 11 lines · On Sun, 3 Sep 2023 08:27:36 -0700 Randy Dunlap <[email protected]> wrote:
Quoted 10 lines · Jonathan Cameron

From: Jonathan Cameron <[email protected]>

This driver uses IIO triggered buffers so it needs to select them in Kconfig.

on riscv-32bit:

/opt/crosstool/gcc-13.2.0-nolibc/riscv32-linux/bin/riscv32-linux-ld: drivers/iio/imu/bno055/bno055.o: in function `.L367':
bno055.c:(.text+0x2c96): undefined reference to `devm_iio_triggered_buffer_setup_ext'

Quoted 7 lines
Quoted 4 lines

Applied to the fixes togreg branch of iio.git and marked for stable. I added missing fixes tag as well whilst doing so. Goes all the way back to first introduction of the driver.

Thanks,

Jonathan

Quoted 21 lines

Thanks.

Quoted 17 lines
---
 drivers/iio/imu/bno055/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/imu/bno055/Kconfig +2 -0
index fa79b1ac4f85..83e53acfbe88 100644
@@ -2,6 +2,8 @@
 
 config BOSCH_BNO055
 	tristate
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 
 config BOSCH_BNO055_SERIAL
 	tristate "Bosch BNO055 attached via UART"