Re: -git10 undefined reference to `i2c_bit_add_bus'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux