All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: rostedt@goodmis.org
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 10:28:30 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.02.1304291022320.9234@oneiric> (raw)
In-Reply-To: <1367244700.28120.6.camel@fedora>

On Mon, 29 Apr 2013, Steven Rostedt wrote:

> On Mon, 2013-04-29 at 06:54 -0400, Robert P. J. Day wrote:
> > On Sun, 28 Apr 2013, Yann E. MORIN wrote:
>
> >   note there is no module named "ath_cards", but my starting .config
> > indeed contains an entry for that as a module:
> >
> > $ grep CONFIG_ATH ../3.9.config
> > CONFIG_ATH_COMMON=m
> > CONFIG_ATH_CARDS=m                 <-- there
>
> Ah, it was enabled when you ran localmodconfig?
>
> > # CONFIG_ATH_DEBUG is not set
> > # CONFIG_ATH5K is not set
> > # CONFIG_ATH5K_PCI is not set
> > CONFIG_ATH9K_HW=m
> > CONFIG_ATH9K_COMMON=m
> > CONFIG_ATH9K_BTCOEX_SUPPORT=y
> > CONFIG_ATH9K=m
> > CONFIG_ATH9K_PCI=y
> > # CONFIG_ATH9K_AHB is not set
> > # CONFIG_ATH9K_DEBUGFS is not set
> > CONFIG_ATH9K_RATE_CONTROL=y
> > # CONFIG_ATH9K_HTC is not set
> > # CONFIG_ATH6KL is not set
> > $
> >
> >   and that symbol is defined in drivers/net/wireless/ath/Kconfig as a
> > "menuconfig":
> >
> > config ATH_COMMON
> >         tristate
> >
> > menuconfig ATH_CARDS                            <-- there
> >         tristate "Atheros Wireless Cards"
> >         ... snip ...
> >
> >   so i'm just going to *guess* that the config procedure, when faced
> > with the line "CONFIG_ATH_CARDS=m", goes looking for a loaded module
> > called "ath_cards" or "ath9k_cards", doesn't find it, and turns off
> > that selection, consequently turning off *all* of my atheros
> > functionality.
> >
> >   the Kconfig file claims that:
> >
> > "menuconfig ATH_CARDS
> >         tristate "Atheros Wireless Cards"
> >         depends on CFG80211 && (!UML || BROKEN)
> >         ---help---
> >           This will enable the support for the Atheros wireless drivers.
> >           ath5k, ath9k, ath9k_htc and ar9170 drivers share some common code, this option
> >           enables the common ath.ko module which shares common helpers.
> >                              ^^^^^^
> >
> >   but the corresponding Makefile has:
> >
> > obj-$(CONFIG_ATH_COMMON)        += ath.o
> >
> > where ath.o depends on ATH_COMMON, *not* ATH_CARDS.
> >
> >   that just seems like a badly-written set of Kconfig structures and
> > dependencies.
>
> localmodconfig is set up to recognize options dependent on config menus.
> I'll have to take a look. Can you send me your .config file you started
> with, and what lsmod gives you. "lsmod > file". I'll see what broke.
>
> Oh, and one last thing. It's best to email me at rostedt@goodmis.org, as
> I don't always check my work email ;-)

  for what it's worth, it's "make oldconfig" that happily tosses away
the ATH9K-related stuff. with a fresh 3.9 kernel, i pulled over my
.config file that works fine for 3.7, and here's the important stuff
(atheros-related):

$ grep CONFIG_ATH .config
CONFIG_ATH_COMMON=m
# CONFIG_ATH_DEBUG is not set
CONFIG_ATH5K=m
# CONFIG_ATH5K_DEBUG is not set
# CONFIG_ATH5K_TRACER is not set
CONFIG_ATH5K_PCI=y
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_BTCOEX_SUPPORT=y
CONFIG_ATH9K=m
CONFIG_ATH9K_PCI=y
CONFIG_ATH9K_AHB=y
CONFIG_ATH9K_DEBUGFS=y
CONFIG_ATH9K_MAC_DEBUG=y
CONFIG_ATH9K_RATE_CONTROL=y
CONFIG_ATH9K_HTC=m
CONFIG_ATH9K_HTC_DEBUGFS=y
# CONFIG_ATH6KL is not set
$

  if i then run:

$ yes '' | make oldconfig

here's the result of that command a second time:

$ grep CONFIG_ATH .config
# CONFIG_ATH_CARDS is not set
$

  all gone. and if i try a localmodconfig, it does in fact warn me
about what's about to happen:

$ make localmodconfig
using config: '.config'
vboxnetadp config not found!!
vboxnetflt config not found!!
vboxdrv config not found!!
vboxpci config not found!!
WARNING: ATH9K_HW is required, but nothing in the
  current config selects it.
WARNING: ATH_COMMON is required, but nothing in the
  current config selects it.
WARNING: ATH9K_COMMON is required, but nothing in the
  current config selects it.
module ath9k did not have configs CONFIG_ATH9K
module ath did not have configs CONFIG_ATH_COMMON
module ath9k_hw did not have configs CONFIG_ATH9K_HW
module ath9k_common did not have configs CONFIG_ATH9K_COMMON
... snip ...

  so it sees the currently loaded modules:

ath9k                 110134  0
ath9k_common           14053  1 ath9k
ath9k_hw              405771  2 ath9k,ath9k_common
ath                    23827  3 ath9k,ath9k_common,ath9k_hw

it just has no idea how to hang onto them, yes?

  at this point, i think this is one of those anomalous corner cases
that has to be recognized and resolved manually. but i can reproduce
all of this from scratch if you'd like to see it.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

  reply	other threads:[~2013-04-29 14:28 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 [this message]
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
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=alpine.DEB.2.02.1304291022320.9234@oneiric \
    --to=rpjday@crashcourse.ca \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --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.