From: Hauke Mehrtens <hauke@hauke-m.de>
To: Kshitij Kulshreshtha <kkhere.geo@gmail.com>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
linux-wireless@vger.kernel.org, mcgrof@infradead.org
Subject: Re: [PATCH 3/4] compat: move pmcia backport code into compat-2.6.36.h
Date: Thu, 23 Sep 2010 21:33:00 +0200 [thread overview]
Message-ID: <4C9BAB6C.2010701@hauke-m.de> (raw)
In-Reply-To: <4C9A5471.2090009@gmail.com>
On 22.09.2010 21:09, Kshitij Kulshreshtha wrote:
>
>
> As on 2010-09-22 18:59, Luis R. Rodriguez did write:
>> On Wed, Sep 22, 2010 at 9:55 AM, Kshitij Kulshreshtha
>> <kkhere.geo@gmail.com> wrote:
>>> Hello,
>>>
>>> As on 2010-09-19 19:42, Hauke Mehrtens did write:
>>>> We have all out backport headers in include/linux/compat-2.6.XX.h also the pcmcia
>>>> part there.
>>>
>>> I'm not sure if this won't make all the compat-wireless modules depend
>>> on pcmcia.ko for kernels < 2.6.36 where
>>> pcmcia_access_configuation_register() is exported. Even if someone is
>>> only building selected drivers like iwlwifi or ath.
>>
>> Have you tried loading ath9k or iwlagn on compat-wireless? Did you
>> note compat doesn't get loaded? Anyway, patches welcomed to enhance
>> this if your concern is if your kernel won't build with this. We also
>> plan on dropping PCMCIA completely anyway.
>
> Actually compat does get loaded since mac80211 needs it for noop_llseek
> on 2.6.34, however my current build is not showing the pcmcia dependency
> that I was afraid of, so please ignore this.
>
> Thanks.
Hi Kshitij,
Hi Luis,
in this case pcmcia_read_config_byte() and pcmcia_write_config_byte()
are inlined so the code will be placed in the drivers using this code
and not compat.ko. The header files for pcmcia are available independent
from how the kernel was configured.
But there are some other functions in compat-2.6.xx.c (e.g.
pccard_loop_tuple() in compat-2.6.33.c) depending on pcmcia code. This
will not cause an compile error because these backport functions are
only build if pcmcia is configured in the kernel but if the kernel
supports pcmcia compat.ko will depend on pcmcia. This does not harm on
normal desktop systems like ubuntu because the devices do have enoth
memory to load the probably unneeded pcmcia module. But if you are on an
embedded device with e.g. 4 MB flash and 16 MB Ram you do not want to
depend on pcmcia if you do not have to.
The same thing also regards usb and probably some other modules. In
OpenWrt we removed the usb backports from compat-wireless, because we
had no support for any driver needing these functions and we do not want
compat.ko to depend on usb, because some devices supported by OpenWrt do
not even have an usb port, but an build in wireless card.
It would make sense to split compat.ko up in compat-generic.ko,
compat-net.ko, compat-pcmcia.ko, compat-usb.ko, and so on, but this will
make maintaining them it really harder.
Hauke
next prev parent reply other threads:[~2010-09-23 19:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-19 17:42 [PATCH 1/4] compat: backport PCMCIA API changes Hauke Mehrtens
2010-09-19 17:42 ` [PATCH 2/4] compat: backport some usb urb functions Hauke Mehrtens
2010-09-19 17:42 ` [PATCH 3/4] compat: move pmcia backport code into compat-2.6.36.h Hauke Mehrtens
2010-09-22 16:55 ` Kshitij Kulshreshtha
2010-09-22 16:59 ` Luis R. Rodriguez
2010-09-22 19:09 ` Kshitij Kulshreshtha
2010-09-23 19:33 ` Hauke Mehrtens [this message]
2010-09-19 17:42 ` [PATCH 4/4] compat: pcmcia/cs.h is removed form new kernels Hauke Mehrtens
2010-09-20 15:32 ` [PATCH 1/4] compat: backport PCMCIA API changes Luis R. Rodriguez
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=4C9BAB6C.2010701@hauke-m.de \
--to=hauke@hauke-m.de \
--cc=kkhere.geo@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=lrodriguez@atheros.com \
--cc=mcgrof@infradead.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;
as well as URLs for NNTP newsgroup(s).