mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] drivers/media/video build fix for certain modular builds
@ 2008-05-16  7:10 Ingo Molnar
  2008-05-16  9:24 ` Sam Ravnborg
  2008-05-20  8:02 ` [patch] dvb/usb: input layer dependency fixes Ingo Molnar
  0 siblings, 2 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-05-16  7:10 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-kernel, Sam Ravnborg


testing of the -tip tree found the following missing symbols build bug:

    LD      init/built-in.o
    LD      .tmp_vmlinux1
    drivers/built-in.o: In function `vidioc_g_ctrl':
    radio-maxiradio.c:(.text+0xd3337): undefined reference to `video_devdata'
    drivers/built-in.o: In function `vidioc_g_frequency':
    radio-maxiradio.c:(.text+0xd3368): undefined reference to `video_devdata'
    drivers/built-in.o: In function `vidioc_s_ctrl':
    [...]

which happens if certain media drivers are modular:

    http://redhat.com/~mingo/misc/config-Thu_May_15_18_10_27_CEST_2008.bad

the problem is:

    CONFIG_VIDEO_MEDIA=m
    CONFIG_VIDEO_DEV=y
    CONFIG_RADIO_MAXIRADIO=y
    CONFIG_VIDEO_V4L2=y

Connecting the build dependencies tree from drivers/media/ to 
drivers/media/video/ allows the built-in drivers(s) to pick up the 
CONFIG_VIDEO_DEV=y symbols.

---
 drivers/media/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/drivers/media/Makefile
===================================================================
--- linux.orig/drivers/media/Makefile
+++ linux/drivers/media/Makefile
@@ -2,7 +2,7 @@
 # Makefile for the kernel multimedia device drivers.
 #
 
-obj-y := common/
+obj-y := common/ video/
 
 obj-$(CONFIG_VIDEO_MEDIA) += common/
 

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

* Re: [patch] drivers/media/video build fix for certain modular builds
  2008-05-16  7:10 [patch] drivers/media/video build fix for certain modular builds Ingo Molnar
@ 2008-05-16  9:24 ` Sam Ravnborg
  2008-05-16 11:19   ` Ingo Molnar
  2008-05-20  8:02 ` [patch] dvb/usb: input layer dependency fixes Ingo Molnar
  1 sibling, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2008-05-16  9:24 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Mauro Carvalho Chehab, linux-kernel

On Fri, May 16, 2008 at 09:10:29AM +0200, Ingo Molnar wrote:
> 
> testing of the -tip tree found the following missing symbols build bug:
> 
>     LD      init/built-in.o
>     LD      .tmp_vmlinux1
>     drivers/built-in.o: In function `vidioc_g_ctrl':
>     radio-maxiradio.c:(.text+0xd3337): undefined reference to `video_devdata'
>     drivers/built-in.o: In function `vidioc_g_frequency':
>     radio-maxiradio.c:(.text+0xd3368): undefined reference to `video_devdata'
>     drivers/built-in.o: In function `vidioc_s_ctrl':
>     [...]
> 
> which happens if certain media drivers are modular:
> 
>     http://redhat.com/~mingo/misc/config-Thu_May_15_18_10_27_CEST_2008.bad
> 
> the problem is:
> 
>     CONFIG_VIDEO_MEDIA=m
>     CONFIG_VIDEO_DEV=y
>     CONFIG_RADIO_MAXIRADIO=y
>     CONFIG_VIDEO_V4L2=y
> 
> Connecting the build dependencies tree from drivers/media/ to 
> drivers/media/video/ allows the built-in drivers(s) to pick up the 
> CONFIG_VIDEO_DEV=y symbols.
> 
> ---
>  drivers/media/Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux/drivers/media/Makefile
> ===================================================================
> --- linux.orig/drivers/media/Makefile
> +++ linux/drivers/media/Makefile
> @@ -2,7 +2,7 @@
>  # Makefile for the kernel multimedia device drivers.
>  #
>  
> -obj-y := common/
> +obj-y := common/ video/
>  
>  obj-$(CONFIG_VIDEO_MEDIA) += common/
>  

Adrian just posted a similar fix that I like better because it
cleans up the Makefile a bit.
The obj-$(CONFIG_VIDEO_MEDIA) += common/ assignment in the
above is for example now redundant.

But otherwise obviously correct.

	Sam


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

* Re: [patch] drivers/media/video build fix for certain modular builds
  2008-05-16  9:24 ` Sam Ravnborg
@ 2008-05-16 11:19   ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-05-16 11:19 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Mauro Carvalho Chehab, linux-kernel


* Sam Ravnborg <sam@ravnborg.org> wrote:

> On Fri, May 16, 2008 at 09:10:29AM +0200, Ingo Molnar wrote:
> > 
> > testing of the -tip tree found the following missing symbols build bug:
> > 
> >     LD      init/built-in.o
> >     LD      .tmp_vmlinux1
> >     drivers/built-in.o: In function `vidioc_g_ctrl':
> >     radio-maxiradio.c:(.text+0xd3337): undefined reference to `video_devdata'
> >     drivers/built-in.o: In function `vidioc_g_frequency':
> >     radio-maxiradio.c:(.text+0xd3368): undefined reference to `video_devdata'
> >     drivers/built-in.o: In function `vidioc_s_ctrl':
> >     [...]
> > 
> > which happens if certain media drivers are modular:
> > 
> >     http://redhat.com/~mingo/misc/config-Thu_May_15_18_10_27_CEST_2008.bad
> > 
> > the problem is:
> > 
> >     CONFIG_VIDEO_MEDIA=m
> >     CONFIG_VIDEO_DEV=y
> >     CONFIG_RADIO_MAXIRADIO=y
> >     CONFIG_VIDEO_V4L2=y
> > 
> > Connecting the build dependencies tree from drivers/media/ to 
> > drivers/media/video/ allows the built-in drivers(s) to pick up the 
> > CONFIG_VIDEO_DEV=y symbols.
> > 
> > ---
> >  drivers/media/Makefile |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > Index: linux/drivers/media/Makefile
> > ===================================================================
> > --- linux.orig/drivers/media/Makefile
> > +++ linux/drivers/media/Makefile
> > @@ -2,7 +2,7 @@
> >  # Makefile for the kernel multimedia device drivers.
> >  #
> >  
> > -obj-y := common/
> > +obj-y := common/ video/
> >  
> >  obj-$(CONFIG_VIDEO_MEDIA) += common/
> >  
> 
> Adrian just posted a similar fix that I like better because it
> cleans up the Makefile a bit.
> The obj-$(CONFIG_VIDEO_MEDIA) += common/ assignment in the
> above is for example now redundant.
> 
> But otherwise obviously correct.

sure enough, i went for the minimal fix. Adrian's patch looks good too.

Acked-by: Ingo Molnar <mingo@elte.hu>

	Ingo

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

* [patch] dvb/usb: input layer dependency fixes
  2008-05-16  7:10 [patch] drivers/media/video build fix for certain modular builds Ingo Molnar
  2008-05-16  9:24 ` Sam Ravnborg
@ 2008-05-20  8:02 ` Ingo Molnar
  1 sibling, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-05-20  8:02 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-kernel, Michael Krufky, Patrick Boettcher


testing of the -tip tree found the following build failures on 
2.6.26-rc3:

  drivers/built-in.o: In function `ttusb_dec_disconnect':
  ttusb_dec.c:(.text+0xa2c95): undefined reference to `input_unregister_device'

  drivers/built-in.o: In function `dvb_usb_read_remote_control':
  dvb-usb-remote.c:(.text+0xa6a94): undefined reference to `input_event'

with this config:

  http://redhat.com/~mingo/misc/config-Tue_May_20_03_48_57_CEST_2008.bad

these are due to the media/dvb/usb layer having dependencies on INPUT 
functionality, without having that spelled out in the Kconfig file.

this patch makes that dependency explicit (for the drivers affected), 
which solves the build error.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/media/dvb/dvb-usb/Kconfig   |    2 +-
 drivers/media/dvb/ttusb-dec/Kconfig |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: linux/drivers/media/dvb/dvb-usb/Kconfig
===================================================================
--- linux.orig/drivers/media/dvb/dvb-usb/Kconfig
+++ linux/drivers/media/dvb/dvb-usb/Kconfig
@@ -1,6 +1,6 @@
 config DVB_USB
 	tristate "Support for various USB DVB devices"
-	depends on DVB_CORE && USB && I2C
+	depends on DVB_CORE && USB && I2C && INPUT
 	depends on HOTPLUG	# due to FW_LOADER
 	select FW_LOADER
 	help
Index: linux/drivers/media/dvb/ttusb-dec/Kconfig
===================================================================
--- linux.orig/drivers/media/dvb/ttusb-dec/Kconfig
+++ linux/drivers/media/dvb/ttusb-dec/Kconfig
@@ -1,6 +1,6 @@
 config DVB_TTUSB_DEC
 	tristate "Technotrend/Hauppauge USB DEC devices"
-	depends on DVB_CORE && USB
+	depends on DVB_CORE && USB && INPUT
 	depends on HOTPLUG	# due to FW_LOADER
 	select FW_LOADER
 	select CRC32

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

end of thread, other threads:[~2008-05-20  8:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16  7:10 [patch] drivers/media/video build fix for certain modular builds Ingo Molnar
2008-05-16  9:24 ` Sam Ravnborg
2008-05-16 11:19   ` Ingo Molnar
2008-05-20  8:02 ` [patch] dvb/usb: input layer dependency fixes Ingo Molnar

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

all inboxes | Powered by JetHome®