public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* clk: x86: build failure
@ 2013-03-23 17:57 Corey Richardson
  2013-03-24  6:44 ` Mika Westerberg
  0 siblings, 1 reply; 2+ messages in thread
From: Corey Richardson @ 2013-03-23 17:57 UTC (permalink / raw)
  To: Mark Brown, Heikki Krogerus, Rafael J. Wysocki, Mike Turquette,
	Mika Westerberg, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

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'

This is after a make oldconfig, perhaps a missed dependency in Kconfig?

[-- Attachment #2: config-napo.gz --]
[-- Type: application/x-gzip, Size: 15509 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: clk: x86: build failure
  2013-03-23 17:57 clk: x86: build failure Corey Richardson
@ 2013-03-24  6:44 ` Mika Westerberg
  0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2013-03-24  6:44 UTC (permalink / raw)
  To: Corey Richardson
  Cc: Mark Brown, Heikki Krogerus, Rafael J. Wysocki, Mike Turquette,
	linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-24  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-23 17:57 clk: x86: build failure Corey Richardson
2013-03-24  6:44 ` Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox