* [PATCH] usb-storage: do not rebuild when kernel version changes
@ 2007-03-03 19:09 Sam Ravnborg
0 siblings, 0 replies; only message in thread
From: Sam Ravnborg @ 2007-03-03 19:09 UTC (permalink / raw)
To: usb-storage, Greg KH, Andrew Morton, LKML
Replacing use of UTS_RELEASE with utsname()->release
avoids that the usb-storage driver is recompiled each
time the kernel version changes.
Compile tested only.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 7e7ec29..8e898e3 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -55,7 +55,7 @@
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
-#include <linux/utsrelease.h>
+#include <linux/utsname.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
@@ -547,7 +547,7 @@ static int get_device_info(struct us_data *us, const struct usb_device_id *id)
idesc->bInterfaceSubClass,
idesc->bInterfaceProtocol,
msgs[msg],
- UTS_RELEASE);
+ utsname()->release);
}
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-03 19:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-03 19:09 [PATCH] usb-storage: do not rebuild when kernel version changes Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®