Re: clk: x86: build failure

From: Mika Westerberg
Date: Sun Mar 24 2013 - 02:41:10 EST


On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote:
> With the attached config, I get the following build failure:
>
> LD init/built-in.o
> drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error:
> undefined reference to 'i2c_unregister_device'

I get following with your config:

LD init/built-in.o
drivers/built-in.o: In function `v4l2_device_unregister':
(.text+0x1186cb): undefined reference to `i2c_unregister_device'
make: *** [vmlinux] Error 1

and it looks like it wants to build in videodev.o (which provides
v4l2_device_unregister()):

CONFIG_VIDEO_DEV=y

This function calls i2c_unregister_device() if IS_ENABLED(CONFIG_I2C) but
i2c support is compiled as a module:

CONFIG_I2C=m

which explains the link error.

However, this has nothing to do with clk-lpt.c or anything related to clock
framework as far as I can tell.
--
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/