From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from static-ip-62-75-166-246.inaddr.intergenia.de ([62.75.166.246]:42577 "EHLO vs166246.vserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbXCCUWb (ORCPT ); Sat, 3 Mar 2007 15:22:31 -0500 From: Michael Buesch To: Sam Ravnborg Subject: Re: [PATCH] bcm43xx: do not rebuild when kernel version changes Date: Sat, 3 Mar 2007 21:21:42 +0100 Cc: linux-wireless@vger.kernel.org, LKML , Andrew Morton , Larry Finger References: <20070303190328.GA30463@uranus.ravnborg.org> In-Reply-To: <20070303190328.GA30463@uranus.ravnborg.org> MIME-Version: 1.0 Message-Id: <200703032121.43136.mb@bu3sch.de> Content-Type: text/plain; charset="iso-8859-1" Sender: linux-wireless-owner@vger.kernel.org List-ID: On Saturday 03 March 2007 20:03, Sam Ravnborg wrote: > Replacing use of UTS_RELEASE with utsname()->release > avoids that this module is rebuild each > time the kernel version changes. > > Compile tested only. I vote to get rid of the whole bcm43xx_ethtool.c file, as it's useless. It will vanish with the advent of d80211, anyway. Larry? > Signed-off-by: Sam Ravnborg > --- > 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 > #include > #include > -#include > +#include > > > 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); > } > > - > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- Greetings Michael.