Re: 2.6.7-mm1 linker trouble with CONFIG_FB_RIVA_I2C=y and modular I2C
From: Matthias Andree
Date: Sun Jun 20 2004 - 21:11:09 EST
On Sun, 20 Jun 2004, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.7/2.6.7-mm1/
This version causes linker trouble with
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m
CONFIG_FB_RIVA_I2C=y
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o(.text+0xda101): In function `riva_setup_i2c_bus':
: undefined reference to `i2c_bit_add_bus'
drivers/built-in.o(.text+0xda218): In function `riva_delete_i2c_busses':
: undefined reference to `i2c_bit_del_bus'
drivers/built-in.o(.text+0xda237): In function `riva_delete_i2c_busses':
: undefined reference to `i2c_bit_del_bus'
drivers/built-in.o(.text+0xda2c9): In function `riva_do_probe_i2c_edid':
: undefined reference to `i2c_transfer'
make: *** [.tmp_vmlinux1] Error 1
Setting CONFIG_FB_RIVA_I2C to "n" fixes the build problem.
Setting CONFIG_I2C and CONFIG_I2C_ALGOBIT to "y" (I used to use "m")
also fixes the build problem.
Full failing .config is attached (comments stripped, gzipped).
--
Matthias Andree
Attachment:
failconfig.gz
Description: application/gunzip