From: "Charles Clément" <caratorn@gmail.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Andreas Schwab <schwab@redhat.com>,
devel@driverdev.osuosl.org, Jassi Brar <jassisinghbrar@gmail.com>,
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 11:02:22 -0700 [thread overview]
Message-ID: <20100525180220.GA14127@fujitsu> (raw)
In-Reply-To: <alpine.LNX.2.00.1005251414310.28092@pobox.suse.cz>
Hello Jiri,
On Tue, May 25, 2010 at 02:16:50PM +0200, Jiri Kosina wrote:
> On Tue, 25 May 2010, Andreas Schwab wrote:
> diff --git a/drivers/staging/cxt1e1/pmcc4.h b/drivers/staging/cxt1e1/pmcc4.h
> index 26c1f0e..e288a0a 100644
> --- a/drivers/staging/cxt1e1/pmcc4.h
> +++ b/drivers/staging/cxt1e1/pmcc4.h
> @@ -117,12 +117,6 @@ extern "C"
>
> #include "pmcc4_private.h"
>
> -#if !(LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
> -char *get_hdlc_name (hdlc_device *);
> -
> -#endif
> -
> -
Shouldn't that declaration be kept?
> diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> index 65f4889..14ca610 100644
> --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c
> @@ -886,32 +711,18 @@ static int ieee80211_tkip_set_key(void *key, int len, u8 *seq, void *priv)
> {
> struct ieee80211_tkip_data *tkey = priv;
> int keyidx;
> -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> - struct crypto_tfm *tfm = tkey->tx_tfm_michael;
> - struct crypto_tfm *tfm2 = tkey->tx_tfm_arc4;
> - struct crypto_tfm *tfm3 = tkey->rx_tfm_michael;
> - struct crypto_tfm *tfm4 = tkey->rx_tfm_arc4;
> -#else
> struct crypto_hash *tfm = tkey->tx_tfm_michael;
> struct crypto_blkcipher *tfm2 = tkey->tx_tfm_arc4;
> struct crypto_hash *tfm3 = tkey->rx_tfm_michael;
> struct crypto_blkcipher *tfm4 = tkey->rx_tfm_arc4;
> -#endif
>
> keyidx = tkey->key_idx;
> memset(tkey, 0, sizeof(*tkey));
> tkey->key_idx = keyidx;
> -#if((LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) && (!OPENSUSE_SLED))
> tkey->tx_tfm_michael = tfm;
> tkey->tx_tfm_arc4 = tfm2;
> tkey->rx_tfm_michael = tfm3;
> tkey->rx_tfm_arc4 = tfm4;
> -#else
> - tkey->tx_tfm_michael = tfm;
> - tkey->tx_tfm_arc4 = tfm2;
> - tkey->rx_tfm_michael = tfm3;
> - tkey->rx_tfm_arc4 = tfm4;
> -#endif
In this block, it is not the same branch that are kept, don't you want
to keep the same ones?
--
Charles Clément
next prev parent reply other threads:[~2010-05-25 18:04 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
2010-05-25 12:16 ` Jiri Kosina
2010-05-25 18:02 ` Charles Clément [this message]
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=20100525180220.GA14127@fujitsu \
--to=caratorn@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=jassisinghbrar@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@redhat.com \
/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.