All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>,
	Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Subject: Re: strange behaviour from "make localmodconfig" throws out ath9k stuff
Date: Mon, 29 Apr 2013 12:15:52 -0400	[thread overview]
Message-ID: <1367252152.30667.19.camel@gandalf.local.home> (raw)
In-Reply-To: <alpine.DEB.2.02.1304291121180.26536@oneiric>

On Mon, 2013-04-29 at 11:37 -0400, Robert P. J. Day wrote:

>   again, looks good, so:
> 
> $ make localmodconfig
> using config: '.config'
> vboxnetadp config not found!!
> vboxnetflt config not found!!
> vboxdrv config not found!!
> vboxpci config not found!!
> ... snip, nothing related to atheros stuff ...
> $
> 
>   but now this doesn't look good:
> 
> $ grep CONFIG_ATH .config
> # CONFIG_ATH_CARDS is not set
> $
> 
> i don't think *that* should have happened.  on, and one last data
> point.
> 
>   if i start fresh with "make defconfig", and go through the same
> steps, "make localmodconfig" will *still* throw away the ATH-related
> stuff, that you can verify for yourself. so it would seem to be
> something in the structure of the Kconfig files for atheros stuff.
> 

Found the bug.

In drivers/net/wireless/ath/Kconfig:

---
if ATH_CARDS

config ATH_DEBUG
        bool "Atheros wireless debugging"
        ---help---
          Say Y, if you want to debug atheros wireless drivers.
          Right now only ath9k makes use of this.

source "drivers/net/wireless/ath/ath5k/Kconfig"
source "drivers/net/wireless/ath/ath9k/Kconfig"
source "drivers/net/wireless/ath/carl9170/Kconfig"
source "drivers/net/wireless/ath/ath6kl/Kconfig"
source "drivers/net/wireless/ath/ar5523/Kconfig"
source "drivers/net/wireless/ath/wil6210/Kconfig"

endif
---

The bug is in the way localmodconfig handles source files. As I wrote
the code to only have one file descriptor open at a time, I just stored
all the "source" files in an array as I parsed the current source file.
At the end, I ran the same code to parse the source files that were
found.

Unfortunately, I didn't take into account that the "if" statement would
surround including source files. Thus, the dependency work did not
detect that the "if ATH_CARDS" was required for the included files.

I don't know of another way to fix this besides just opening the files
as they are found. I might as well do that, and remove the "delayed"
logic. I'll just have to have multiple file descriptors opened in this
case. Shouldn't be too big of a deal.

Thanks,

-- Steve



  parent reply	other threads:[~2013-04-29 16:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 19:05 strange behaviour from "make localmodconfig" throws out ath9k stuff Robert P. J. Day
2013-04-26 19:36 ` Yann E. MORIN
2013-04-27  0:47   ` Robert P. J. Day
2013-04-27 15:38 ` Yann E. MORIN
2013-04-27 17:30   ` Robert P. J. Day
2013-04-27 17:42     ` Yann E. MORIN
2013-04-27 17:48       ` Robert P. J. Day
2013-04-27 18:19       ` Robert P. J. Day
2013-04-28 20:28         ` Yann E. MORIN
2013-04-29 10:54           ` Robert P. J. Day
2013-04-29 14:11             ` Steven Rostedt
2013-04-29 14:28               ` Robert P. J. Day
2013-04-29 14:41                 ` Steven Rostedt
2013-04-29 15:01                   ` Robert P. J. Day
2013-04-29 15:13                     ` Steven Rostedt
2013-04-29 15:19                       ` Robert P. J. Day
     [not found]                       ` <alpine.DEB.2.02.1304291121180.26536@oneiric>
2013-04-29 16:15                         ` Steven Rostedt [this message]
2013-04-29 18:00                         ` Steven Rostedt
2013-04-29 18:26                           ` Robert P. J. Day
2013-04-29 18:41                           ` Robert P. J. Day
2013-04-29 19:15                           ` Robert P. J. Day
2013-04-29 20:43                             ` Steven Rostedt
2013-04-29 20:50                               ` Robert P. J. Day
2013-04-29 20:39                           ` Robert P. J. Day
2013-04-29 23:40                             ` Steven Rostedt
2013-04-29 14:02           ` Steven Rostedt
2013-04-27 17:47   ` Robert P. J. Day

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=1367252152.30667.19.camel@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=rpjday@crashcourse.ca \
    --cc=yann.morin.1998@free.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.