The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: "Michael Krufky" <mkrufky@linuxtv.org>
Cc: "v4l-dvb maintainer list" <v4l-dvb-maintainer@linuxtv.org>,
	linuxtv-commits@linuxtv.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [linuxtv-commits] [hg:v4l-dvb] Fix FW_LOADER depencency at v4l/dvb
Date: Tue, 6 May 2008 12:42:23 -0300	[thread overview]
Message-ID: <20080506124223.653c37f2@gaivota> (raw)
In-Reply-To: <37219a840805060754j3c65d812l527d1837a5d95266@mail.gmail.com>

On Tue, 6 May 2008 10:54:02 -0400
"Michael Krufky" <mkrufky@linuxtv.org> wrote:

> Mauro,
> 
> I disagree with this change.

So, propose another way to fix. Without this patch, if HOTPLUG = 'n', several
drivers will break.

Sorry, but I can't see any other solution (in fact, I tested "select HOTPLUG",
but this caused circular dependencies loops). 

The way "select" works is simple: You need to manually add all "depends on"
from the original symbol into the one that adds "select". I don't like this way
(and I'm currently questioning this at LKML), but while people don't decide to
implement "select" on another way (or to write a different tag for this, as
proposed by Sam), the proper fix is the one I've proposed.

If you have a better proposal, please, feel free to send it. If you have a
better fix, I'll revert this one.

> It looks like you are attempting to workaround a Kbuild bug

It is not a Kbuild bug, but the way Kbuild were implemented. This is what is
written at kbuild/kconfig-language.txt:

"       select should be used with care. select will force
        a symbol to a value without visiting the dependencies.
        By abusing select you are able to select a symbol FOO even
        if FOO depends on BAR that is not set.
        In general use select only for non-visible symbols
        (no prompts anywhere) and for symbols with no dependencies.
        That will limit the usefulness but on the other hand avoid
        the illegal configurations all over.
        kconfig should one day warn about such things." 

Cheers,
Mauro

      reply	other threads:[~2008-05-06 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1JtNrl-0006mQ-MG@www.linuxtv.org>
2008-05-06 14:54 ` [linuxtv-commits] [hg:v4l-dvb] Fix FW_LOADER depencency at v4l/dvb Michael Krufky
2008-05-06 15:42   ` Mauro Carvalho Chehab [this message]

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=20080506124223.653c37f2@gaivota \
    --to=mchehab@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxtv-commits@linuxtv.org \
    --cc=mkrufky@linuxtv.org \
    --cc=v4l-dvb-maintainer@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