linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: "Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: Luis Rodriguez <Luis.Rodriguez@atheros.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"mcgrof@infradead.org" <mcgrof@infradead.org>
Subject: Re: [PATCH] compat: backport linux/pci-aspm.h
Date: Thu, 02 Sep 2010 15:18:00 +0200	[thread overview]
Message-ID: <4C7FA408.3010408@hauke-m.de> (raw)
In-Reply-To: <AANLkTi=29wfzQz7CK8QX++n+S-KrHVGszW60AFS_vpbs@mail.gmail.com>

Am 01.09.2010 17:12, schrieb Luis R. Rodriguez:
> On Wed, Sep 1, 2010 at 8:07 AM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>> Am 28.08.2010 23:01, schrieb Luis R. Rodriguez:
>>> On Fri, Aug 27, 2010 at 11:41:54AM -0700, Hauke Mehrtens wrote:
>>>> pci-aspm.h was introduced in kernel 2.6.25 and is used by the ath5k driver.
>>>>
>>>> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
>>>> ---
>>>>  include/linux/pci-aspm.h |   55 ++++++++++++++++++++++++++++++++++++++++++++++
>>>>  1 files changed, 55 insertions(+), 0 deletions(-)
>>>>  create mode 100644 include/linux/pci-aspm.h
>>>>
>>>> diff --git a/include/linux/pci-aspm.h b/include/linux/pci-aspm.h
>>>> new file mode 100644
>>>> index 0000000..c791d00
>>>> --- /dev/null
>>>> +++ b/include/linux/pci-aspm.h
>>>
>>> So compat-wireless would have to copy this file over? We'd then have to synch
>>> this file for older kernels, and the real kernel header's own pci-aspm.h for
>>> kernels >= 2.6.25 would be using this version of the file. Can we just stuff
>>> the ASPM required stuff onto include/linux/compat-2.6.25.h ?
>>>
>>>   Luis
>> Hi,
>>
>> we can stuff the empty aspm functions into compat-2.6.25.h, but we need
>> include/linux/pci-aspm.h or we need an extra ifdef in compat-wireless
>> (not nice). Some drivers like drivers/net/wireless/ath/ath5k/base.c and
>> drivers/net/wireless/iwlwifi/iwl-agn.c are including pci-aspm.h, but it
>> is not there for kernels < 2.6.25.
> 
> Understood and good point.
> 
>> I will prepare a new patch for compat. With an mostly empty pci-aspm.h
>> with an include_next and some functions in compat-2.6.35.h.
> 
> Well so the issue is getting kernels newer than include their own
> kernel header's include/linux/pci-aspm.h rather than the one provided
> by compat. How will this be achieved?

#include_next includes the next file with this name.
http://www.delorie.com/gnu/docs/gcc/cpp_11.html (middle)
We can do it like it is done in include/linux/tracepoint.h in compat.
If something changes in pci-aspm.h in the kernel we do not have to
change anything for kernel > 2.6.25.

Hauke

  reply	other threads:[~2010-09-02 13:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27 18:41 [PATCH] compat: backport linux/pci-aspm.h Hauke Mehrtens
2010-08-28 21:01 ` Luis R. Rodriguez
2010-09-01 15:07   ` Hauke Mehrtens
2010-09-01 15:12     ` Luis R. Rodriguez
2010-09-02 13:18       ` Hauke Mehrtens [this message]
2010-09-02 14:12         ` 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=4C7FA408.3010408@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=Luis.Rodriguez@atheros.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).