mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Adrian Bunk <bunk@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org,
	Michael Krufky <mkrufky@linuxtv.org>
Subject: Re: [patch] dvb: build failure fix
Date: Mon, 28 Apr 2008 18:25:01 -0300	[thread overview]
Message-ID: <20080428182501.5bb87058@gaivota> (raw)
In-Reply-To: <20080428210122.GC2813@cs181133002.pp.htv.fi>

On Tue, 29 Apr 2008 00:01:22 +0300
Adrian Bunk <bunk@kernel.org> wrote:

> On Mon, Apr 28, 2008 at 09:53:30PM +0200, Ingo Molnar wrote:
> > 
> > * Adrian Bunk <bunk@kernel.org> wrote:
> > 
> > > On Mon, Apr 28, 2008 at 06:24:21PM +0200, Ingo Molnar wrote:
> > > > 
> > > > fix build failure found via x86.git randconfig testing:
> > > > 
> > > >  drivers/built-in.o: In function `tda829x_attach':
> > > >  : undefined reference to `tda827x_attach'
> > > >  drivers/built-in.o: In function `tda829x_attach':
> > > >  : undefined reference to `tda18271_attach'
> > > > 
> > > > build failure is due to this nasty dependency:
> > > > 
> > > >   CONFIG_DVB_CORE=m but CONFIG_TUNER_TDA8290=y.
> > 
> > > It might work around the problem in your specific configuration, but 
> > > it's not the correct solution.
> > > 
> > > Please send your .config .
> > 
> > i dont have it anymore,
> 
> That's bad since it makes it harder for other people to reproduce the 
> problem.
> 
> > but the key was what i wrote in the changelog 
> > above:
> > 
> >   CONFIG_DVB_CORE=m
> >   CONFIG_TUNER_TDA8290=y
> > 
> > if you look at the symbols above, their definition sites, and the 
> > dependencies between them you'll see why that breaks the build. (There 
> > might be more to it, this area has been a frequent source of problems.)
> 
> TUNER_TDA8290 is the only affected driver, your patch also adds wrong 
> dependences to other driver.
> 
> And the underlying problem is that it has both an analog an a DVB tuner, 
> and although forcing a dependency on DVB_CORE might make the randconfig 
> crowd happy it's not the correct solution.
> 
> Mauro, where were we regarding this issue?
> 
> What about:
> 
> config TUNER_TDA8290
>         tristate "TDA 8290/8295 + 8275(a)/18271 tuner combo"
>         depends on I2C
> 	depends on DVB_CORE || DVB_CORE=n
>         select DVB_TDA827X if DVB_CORE
>         select DVB_TDA18271 if DVB_CORE
>         default m if VIDEO_TUNER_CUSTOMIZE
>         help
>           Say Y here to include support for Philips TDA8290+8275(a) tuner.
> 
> Or is there some twist I'm missing?


This will fix compilation, but some drivers will be broken, since tda8275 is
needed even for some analog-only drivers.

It would be better to do a "select DVB_CORE", although this is also ugly.

I'm pinging Mkrufky. He is the one that touched a lot on those drivers. Maybe
he can come up with a better solution.

Cheers,
Mauro

  reply	other threads:[~2008-04-28 21:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28 16:24 Ingo Molnar
2008-04-28 18:04 ` Adrian Bunk
2008-04-28 19:53   ` Ingo Molnar
2008-04-28 21:01     ` Adrian Bunk
2008-04-28 21:25       ` Mauro Carvalho Chehab [this message]
2008-04-28 21:29         ` mkrufky
2008-04-29 12:14           ` Ingo Molnar
2008-04-30 19:17           ` Mauro Carvalho Chehab
2008-04-30 19:28             ` Adrian Bunk
2008-04-30 19:31               ` mkrufky
2008-04-30 19:52                 ` Mauro Carvalho Chehab
2008-04-30 20:01                   ` Adrian Bunk
2008-04-30 22:32                     ` mkrufky
2008-04-28 19:47 ` Mauro Carvalho Chehab
2008-04-28 20:30   ` Ingo Molnar
2008-04-28 21:03     ` Mauro Carvalho Chehab
2008-04-28 21:17       ` Ingo Molnar
2008-04-28 21:20         ` Ingo Molnar
2008-04-28 21:23           ` Ingo Molnar
2008-04-28 21:25             ` Ingo Molnar

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=20080428182501.5bb87058@gaivota \
    --to=mchehab@infradead.org \
    --cc=bunk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mkrufky@linuxtv.org \
    /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

Powered by JetHome