public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: "Michael Krufky" <mkrufky@linuxtv.org>,
	"Toralf Förster" <toralf.foerster@gmx.de>,
	linux-kernel@vger.kernel.org, v4l-dvb-maintainer@linuxtv.org,
	video4linux-list@redhat.com
Subject: [2.6 patch] drivers/media/Makefile: always enter video/
Date: Wed, 12 Dec 2007 19:40:32 +0100	[thread overview]
Message-ID: <20071212184032.GE10069@stusta.de> (raw)
In-Reply-To: <1197470781.4744.41.camel@gaivota>

On Wed, Dec 12, 2007 at 12:46:21PM -0200, Mauro Carvalho Chehab wrote:
> Em Qua, 2007-12-12 às 08:42 -0500, Michael Krufky escreveu:
> > > ERROR: "tea5761_attach" [drivers/media/video/tuner.ko] undefined!
> > > ERROR: "tea5761_autodetection" [drivers/media/video/tuner.ko] undefined!
> > > ERROR: "tea5767_autodetection" [drivers/media/video/tuner.ko] undefined!
> > > ERROR: "tea5767_attach" [drivers/media/video/tuner.ko] undefined!
> 
> > It looks like the problem has something to do with VIDEO_TUNER=m while
> > both TUNER_TEA5761 & TUNER_TEA5767 are set to 'y'.
> > 
> > I thought that we had already seen this issue and fixed it, but I guess
> > not :-/
> > 
> > One would think that this could be fixed by making TUNER_TEA5761 &
> > TUNER_TEA5767 both depend on VIDEO_TUNER , but that would be wrong,
> > since each of those modules can be attached directly to a bridge driver
> > without tuner.ko being present at all (although this is not done in
> > practice right now, but it *is* the case with some other tuner drivers)
> 
> I don't see any issue on making both dependent on VIDEO_TUNER for
> 2.6.24, since they are currently used only by tuner core module
> (tuner.ko).
>...

If "selected code isn't included" also counts as a bug at least dabusb 
is also affected by the same bug.

What about the patch below instead that fixes the actual bug instead of 
working around it?

> Cheers,
> Mauro

cu
Adrian


<--  snip  -->


Since not all code under drivers/media/video/ depends on 
CONFIG_VIDEO_DEV we cannot only enter it depending
on CONFIG_VIDEO_DEV.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
9c315b376729908cbdde8adaea0d7bc0a47a2c36 
diff --git a/drivers/media/Makefile b/drivers/media/Makefile
index 8fa1993..8cf9135 100644
--- a/drivers/media/Makefile
+++ b/drivers/media/Makefile
@@ -3,6 +3,6 @@
 #
 
 obj-y := common/
-obj-$(CONFIG_VIDEO_DEV) += video/
+obj-y += video/
 obj-$(CONFIG_VIDEO_DEV) += radio/
 obj-$(CONFIG_DVB_CORE)  += dvb/


  parent reply	other threads:[~2007-12-12 18:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12  8:34 build #340 failed for 2.6.24-rc5-g75b8c13 in linux/drivers/media/video/tuner.ko Toralf Förster
2007-12-12 13:42 ` [v4l-dvb-maintainer] " Michael Krufky
2007-12-12 14:46   ` Mauro Carvalho Chehab
2007-12-12 16:00     ` mkrufky
2007-12-12 17:57       ` [v4l-dvb-maintainer] build #340 failed for 2.6.24-rc5-g75b8c13 in?linux/drivers/media/video/tuner.ko Adrian Bunk
2007-12-13 20:11         ` Mauro Carvalho Chehab
2007-12-12 18:40     ` Adrian Bunk [this message]
2007-12-12 21:13       ` [v4l-dvb-maintainer] [2.6 patch] drivers/media/Makefile: always enter video/ Trent Piepho
2007-12-12 21:16         ` [v4l-dvb-maintainer] [2.6 patch] drivers/media/Makefile: alwa ys " mkrufky
2007-12-13  9:55         ` [v4l-dvb-maintainer] [2.6 patch] drivers/media/Makefile: always " Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071212184032.GE10069@stusta.de \
    --to=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=mkrufky@linuxtv.org \
    --cc=toralf.foerster@gmx.de \
    --cc=v4l-dvb-maintainer@linuxtv.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox