Re: [build bug] undefined reference to `i2c_attach_client'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <linux-kernel@...>, Mauro Carvalho Chehab <mchehab@...>, Hans Verkuil <hverkuil@...>
Date: Friday, February 1, 2008 - 5:26 pm

> > randconfig testing found the following build bug in latest -git:
 > > 
 > >  drivers/built-in.o: In function `v4l2_i2c_attach':
 > >  : undefined reference to `i2c_attach_client'

I hit this too -- it seems that commit 8ffbc655 ("V4L/DVB (6451):
v4l2: add support for bus-based I2C drivers"), which added
v4l2_i2c_attach() without adding any dependency on CONFIG_I2C.  Not
sure what the correct fix is -- either CONFIG_VIDEO_DEV needs to
select/depend on CONFIG_I2C, or v4l2_i2c_attach() should only be built
if CONFIG_I2C is on.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [build bug] undefined reference to `i2c_attach_client', Roland Dreier, (Fri Feb 1, 5:26 pm)