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

From: Roland Dreier
Date: Fri Feb 01 2008 - 16:26:31 EST


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