Thread (2 messages) 2 messages, 2 authors, 2005-09-11

Re: -git10 undefined reference to `i2c_bit_add_bus'

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2005-09-11 00:55:36
Also in: lkml
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

Jan Dittmer wrote:
I didn't look into details, but attached config does not
compile anymore after selecting the new (compared to
2.6.13-rc6-git5) option CONFIG_FB_I810_I2C.


  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `i810_setup_i2c_bus':
i810-i2c.c:(.text+0x657d2): undefined reference to `i2c_bit_add_bus'
drivers/built-in.o: In function `i810_delete_i2c_busses':
: undefined reference to `i2c_bit_del_bus'
drivers/built-in.o: In function `i810_delete_i2c_busses':
: undefined reference to `i2c_bit_del_bus'
drivers/built-in.o: In function `i810_do_probe_i2c_edid':
i810-i2c.c:(.text+0x6599b): undefined reference to `i2c_transfer'
make: *** [.tmp_vmlinux1] Error 1
Try the attached patch.  Run your make *config again, then recompile.

Fix compile error if CONFIG_FB_I810_I2C is 'y' and CONFIG_I2C = 'm'.

Signed-off-by: Antonino Daplas <redacted>
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -708,7 +708,8 @@ config FB_I810_GTF
 
 config FB_I810_I2C
 	bool "Enable DDC Support"
-	depends on FB_I810 && I2C && FB_I810_GTF
+	depends on FB_I810 && FB_I810_GTF
+	select I2C
 	select I2C_ALGOBIT
 	help
 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help