From: Michael Buesch <mb@bu3sch.de>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John Linville <linville@tuxdriver.com>,
Bcm43xx-dev@lists.berlios.de, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] bcm43xx: do not rebuild when kernel version changes
Date: Sun, 4 Mar 2007 13:57:32 +0100 [thread overview]
Message-ID: <200703041357.33238.mb@bu3sch.de> (raw)
In-Reply-To: <45ea5f3c.mlfmHoZ11OcoG/sT%Larry.Finger@lwfinger.net>
On Sunday 04 March 2007 06:55, Larry Finger wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
>
> In bcm43xx_ethtool, UTS_RELEASE is used. Replacing this with utsname()->release
> avoids rebuilding this module each time the kernel version changes.
>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
>
> John,
>
> As the ethtool removal was NACKed by Jeff, we need to do this one.
What the fuck, why?
> Larry
>
> ===
>
> diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c
> index c947025..d2df6a0 100644
> --- a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c
> +++ b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c
> @@ -32,7 +32,7 @@
> #include <linux/netdevice.h>
> #include <linux/pci.h>
> #include <linux/string.h>
> -#include <linux/utsrelease.h>
> +#include <linux/utsname.h>
>
>
> static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
> @@ -40,7 +40,7 @@ static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *
> struct bcm43xx_private *bcm = bcm43xx_priv(dev);
>
> strncpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
> - strncpy(info->version, UTS_RELEASE, sizeof(info->version));
> + strncpy(info->version, utsname()->release, sizeof(info->version));
> strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN);
> }
>
> -
>
>
>
--
Greetings Michael.
next prev parent reply other threads:[~2007-03-04 12:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 5:55 [PATCH] bcm43xx: do not rebuild when kernel version changes Larry Finger
2007-03-04 12:57 ` Michael Buesch [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-03 19:03 Sam Ravnborg
2007-03-03 20:21 ` Michael Buesch
2007-03-03 21:03 ` Larry Finger
2007-03-03 21:10 ` Michael Buesch
2007-03-03 21:13 ` Sam Ravnborg
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=200703041357.33238.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=Bcm43xx-dev@lists.berlios.de \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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.