From: Andreas Schwab <schwab@redhat.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Jassi Brar <jassisinghbrar@gmail.com>,
devel@driverdev.osuosl.org, Greg Kroah-Hartman <gregkh@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE
Date: Tue, 25 May 2010 14:09:12 +0200 [thread overview]
Message-ID: <m3eih0dvyv.fsf@hase.home> (raw)
In-Reply-To: <alpine.LNX.2.00.1005251355100.28092@pobox.suse.cz> (Jiri Kosina's message of "Tue, 25 May 2010 13:55:44 +0200 (CEST)")
Jiri Kosina <jkosina@suse.cz> writes:
> diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c
> index 134e756..ace28c7 100644
> --- a/drivers/staging/cxt1e1/linux.c
> +++ b/drivers/staging/cxt1e1/linux.c
> @@ -1341,9 +1226,6 @@ module_exit (c4_mod_remove);
>
> #ifndef SBE_INCLUDE_SYMBOLS
> #ifndef CONFIG_SBE_WANC24_NCOMM
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> -EXPORT_NO_SYMBOLS;
> -#endif
> #endif
> #endif
This is now empty.
> diff --git a/drivers/staging/cxt1e1/sbecom_inline_linux.h b/drivers/staging/cxt1e1/sbecom_inline_linux.h
> index c65172d..5a72cb5 100644
> --- a/drivers/staging/cxt1e1/sbecom_inline_linux.h
> +++ b/drivers/staging/cxt1e1/sbecom_inline_linux.h
> @@ -60,12 +57,8 @@
>
> #ifdef MODULE
> #ifdef MODVERSIONS
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> -#include <linux/modversions.h>
> -#else
> #include <config/modversions.h>
> #endif
> -#endif
This should be removed altogether.
> diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211.h b/drivers/staging/rtl8192e/ieee80211/ieee80211.h
> index 50728f6..02594fd 100644
> --- a/drivers/staging/rtl8192e/ieee80211/ieee80211.h
> +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211.h
> @@ -2329,36 +2246,20 @@ struct ieee80211_device {
>
> /* used if IEEE_SOFTMAC_BEACONS is set */
> struct timer_list beacon_timer;
> -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
> struct work_struct associate_complete_wq;
> struct work_struct associate_procedure_wq;
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
> struct delayed_work softmac_scan_wq;
> struct delayed_work associate_retry_wq;
> struct delayed_work start_ibss_wq;
> struct delayed_work hw_wakeup_wq;
> struct delayed_work hw_sleep_wq;
> -#else
> struct work_struct softmac_scan_wq;
> struct work_struct associate_retry_wq;
> struct work_struct start_ibss_wq;
> struct work_struct hw_wakeup_wq;
> struct work_struct hw_sleep_wq;
> -#endif
The #else branch needs to be fully removed.
> diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
> index 46b6e8c..a60b001 100644
> --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
> +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
> @@ -704,16 +658,10 @@ void ieee80211_rtl_start_scan(struct ieee80211_device *ieee)
> if (ieee->softmac_features & IEEE_SOFTMAC_SCAN){
> if (ieee->scanning == 0){
> ieee->scanning = 1;
> -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
> queue_delayed_work(ieee->wq, &ieee->softmac_scan_wq, 0);
> -#else
>
> queue_work(ieee->wq, &ieee->softmac_scan_wq);
> -#endif
> -#else
> ieee80211_softmac_scan(ieee);
> -#endif
Likewise.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
next prev parent reply other threads:[~2010-05-25 12:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 10:01 [PATCH] staging: remove all code dependent on LINUX_VERSION_CODE Jiri Kosina
2010-05-25 11:08 ` Jassi Brar
2010-05-25 11:18 ` Jassi Brar
2010-05-25 11:55 ` Jiri Kosina
2010-05-25 12:09 ` Andreas Schwab [this message]
2010-05-25 12:16 ` Jiri Kosina
2010-05-25 18:02 ` Charles Clément
2010-05-26 11:39 ` Jiri Kosina
2010-05-26 15:52 ` Charles Clément
2010-05-25 18:06 ` Greg KH
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=m3eih0dvyv.fsf@hase.home \
--to=schwab@redhat.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=jassisinghbrar@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.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