Skip to contentSkip to conversation

Fix build failure for gp2ap020a00f.c

PATCH Applied Russell King - ARM Linux 2 participants 2 messages Dec 2, 2013 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build failure for gp2ap020a00f.c

drivers/built-in.o: In function `gp2ap020a00f_thresh_event_handler':
powercap_sys.c:(.text+0x15f90c): undefined reference to `irq_work_queue' make[1]: *** [vmlinux] Error 1
make[1]: Target `uImage' not remade because of errors.
make: *** [sub-make] Error 2
make: Target `uImage' not remade because of errors.

You need the IRQ work support, but GP2AP020A00F is not selecting this symbol.

---
 drivers/iio/light/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/iio/light/Kconfig +1 -0
index b0d65df3ede2..a022f27c6690 100644
@@ -43,6 +43,7 @@ config GP2AP020A00F
 	depends on I2C
 	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER
+	select IRQ_WORK
 	help
 	  Say Y here if you have a Sharp GP2AP020A00F proximity/ALS combo-chip
 	  hooked to an I2C bus.
maintainer Applied
#1 lore raw
Quoted 11 lines · Russell King - ARM Linux

drivers/built-in.o: In function `gp2ap020a00f_thresh_event_handler':
powercap_sys.c:(.text+0x15f90c): undefined reference to `irq_work_queue' make[1]: *** [vmlinux] Error 1
make[1]: Target `uImage' not remade because of errors.
make: *** [sub-make] Error 2
make: Target `uImage' not remade because of errors.

You need the IRQ work support, but GP2AP020A00F is not selecting this symbol.

Thanks Russell,

Applied to the fixes-togreg branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git

Jonathan

Quoted 17 lines
---
 drivers/iio/light/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/iio/light/Kconfig +1 -0
index b0d65df3ede2..a022f27c6690 100644
@@ -43,6 +43,7 @@ config GP2AP020A00F
 	depends on I2C
 	select IIO_BUFFER
 	select IIO_TRIGGERED_BUFFER
+	select IRQ_WORK
 	help
 	  Say Y here if you have a Sharp GP2AP020A00F proximity/ALS combo-chip
 	  hooked to an I2C bus.