* tiacx - don't use UTS_RELEASE
@ 2006-07-04 9:07 Arjan van de Ven
2006-07-04 9:25 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Arjan van de Ven @ 2006-07-04 9:07 UTC (permalink / raw)
To: akpm; +Cc: netdev
Hi,
patch below removes the use of UTS_RELEASE from the tiacx driver; there
is absolutely no reason for a driver to print the kernel version or use
the UTS_RELEASE field; in addition this field changes all the time so
this causes spurious rebuilds..
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
---
drivers/net/wireless/tiacx/pci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.17-mm4/drivers/net/wireless/tiacx/pci.c
===================================================================
--- linux-2.6.17-mm4.orig/drivers/net/wireless/tiacx/pci.c
+++ linux-2.6.17-mm4/drivers/net/wireless/tiacx/pci.c
@@ -1705,8 +1705,8 @@ acxpci_e_probe(struct pci_dev *pdev, con
/* acx_sem_unlock(adev); */
printk("acx "ACX_RELEASE": net device %s, driver compiled "
- "against wireless extensions %d and Linux %s\n",
- ndev->name, WIRELESS_EXT, UTS_RELEASE);
+ "against wireless extensions %d\n",
+ ndev->name, WIRELESS_EXT);
#if CMD_DISCOVERY
great_inquisitor(adev);
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: tiacx - don't use UTS_RELEASE
2006-07-04 9:07 tiacx - don't use UTS_RELEASE Arjan van de Ven
@ 2006-07-04 9:25 ` Andrew Morton
2006-07-04 9:27 ` Arjan van de Ven
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2006-07-04 9:25 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: netdev
On Tue, 04 Jul 2006 11:07:59 +0200
Arjan van de Ven <arjan@infradead.org> wrote:
> patch below removes the use of UTS_RELEASE from the tiacx driver; there
> is absolutely no reason for a driver to print the kernel version or use
> the UTS_RELEASE field; in addition this field changes all the time so
> this causes spurious rebuilds..
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-04-usb/usb-storage-uname-in-pr-sc-unneeded-message.patch did it too.
UTS_RELEASE doesn't change much. It's "2.6.17".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiacx - don't use UTS_RELEASE
2006-07-04 9:25 ` Andrew Morton
@ 2006-07-04 9:27 ` Arjan van de Ven
2006-07-04 9:51 ` Sam Ravnborg
0 siblings, 1 reply; 5+ messages in thread
From: Arjan van de Ven @ 2006-07-04 9:27 UTC (permalink / raw)
To: Andrew Morton; +Cc: netdev
On Tue, 2006-07-04 at 02:25 -0700, Andrew Morton wrote:
> On Tue, 04 Jul 2006 11:07:59 +0200
> Arjan van de Ven <arjan@infradead.org> wrote:
>
> > patch below removes the use of UTS_RELEASE from the tiacx driver; there
> > is absolutely no reason for a driver to print the kernel version or use
> > the UTS_RELEASE field; in addition this field changes all the time so
> > this causes spurious rebuilds..
>
> http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-04-usb/usb-storage-uname-in-pr-sc-unneeded-message.patch did it too.
>
> UTS_RELEASE doesn't change much. It's "2.6.17".
no but the header that it's in changes all the time iirc, at least it
used to (one of those kbuild regenerated files)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiacx - don't use UTS_RELEASE
2006-07-04 9:27 ` Arjan van de Ven
@ 2006-07-04 9:51 ` Sam Ravnborg
2006-07-04 10:00 ` Arjan van de Ven
0 siblings, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2006-07-04 9:51 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: Andrew Morton, netdev
On Tue, Jul 04, 2006 at 11:27:27AM +0200, Arjan van de Ven wrote:
> On Tue, 2006-07-04 at 02:25 -0700, Andrew Morton wrote:
> > On Tue, 04 Jul 2006 11:07:59 +0200
> > Arjan van de Ven <arjan@infradead.org> wrote:
> >
> > > patch below removes the use of UTS_RELEASE from the tiacx driver; there
> > > is absolutely no reason for a driver to print the kernel version or use
> > > the UTS_RELEASE field; in addition this field changes all the time so
> > > this causes spurious rebuilds..
> >
> > http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-04-usb/usb-storage-uname-in-pr-sc-unneeded-message.patch did it too.
> >
> > UTS_RELEASE doesn't change much. It's "2.6.17".
>
> no but the header that it's in changes all the time iirc, at least it
> used to (one of those kbuild regenerated files)
Yesterday I pushed a change that splitted include/linux/version.h in two
parts.
Now include/linux/version.h only contains:
#define LINUX_VERSION_CODE 132625
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
And the file wil only be regenerated when the file-content actually
changes.
And UTS_RELEASE has moved to include/linux/utsrelease.h which contains:
#define UTS_RELEASE "2.6.17-g05668381-dirty"
This is the file that will change often - at least for git users.
But with the patch only users of UTS_RELEASE will be rebuild which is
far less than users of version.h.
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: tiacx - don't use UTS_RELEASE
2006-07-04 9:51 ` Sam Ravnborg
@ 2006-07-04 10:00 ` Arjan van de Ven
0 siblings, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2006-07-04 10:00 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Andrew Morton, netdev
On Tue, 2006-07-04 at 11:51 +0200, Sam Ravnborg wrote:
> On Tue, Jul 04, 2006 at 11:27:27AM +0200, Arjan van de Ven wrote:
> > On Tue, 2006-07-04 at 02:25 -0700, Andrew Morton wrote:
> > > On Tue, 04 Jul 2006 11:07:59 +0200
> > > Arjan van de Ven <arjan@infradead.org> wrote:
> > >
> > > > patch below removes the use of UTS_RELEASE from the tiacx driver; there
> > > > is absolutely no reason for a driver to print the kernel version or use
> > > > the UTS_RELEASE field; in addition this field changes all the time so
> > > > this causes spurious rebuilds..
> > >
> > > http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-04-usb/usb-storage-uname-in-pr-sc-unneeded-message.patch did it too.
> > >
> > > UTS_RELEASE doesn't change much. It's "2.6.17".
> >
> > no but the header that it's in changes all the time iirc, at least it
> > used to (one of those kbuild regenerated files)
> Yesterday I pushed a change that splitted include/linux/version.h in two
> parts.
> Now include/linux/version.h only contains:
> #define LINUX_VERSION_CODE 132625
> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
>
> And the file wil only be regenerated when the file-content actually
> changes.
>
> And UTS_RELEASE has moved to include/linux/utsrelease.h which contains:
> #define UTS_RELEASE "2.6.17-g05668381-dirty"
>
> This is the file that will change often - at least for git users.
> But with the patch only users of UTS_RELEASE will be rebuild which is
> far less than users of version.h.
which is a good thing, and we should keep users of utsrelease.h to a
minimum... hence my patch to eliminate a user ;) (which used it to do a
printk.. but if you use a kernel the version is already in dmesg, no
need to printk it again :)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-04 10:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 9:07 tiacx - don't use UTS_RELEASE Arjan van de Ven
2006-07-04 9:25 ` Andrew Morton
2006-07-04 9:27 ` Arjan van de Ven
2006-07-04 9:51 ` Sam Ravnborg
2006-07-04 10:00 ` Arjan van de Ven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox