From: Sam Ravnborg Date: Mon, 5 Mar 2007 08:30:55 +0000 (-0800) Subject: [PATCH] usb-storage: do not rebuild when kernel version changes X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~28272 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=00f8b0c1856447186f4d28a00c9ad955c566371d;p=mirror_ubuntu-zesty-kernel.git [PATCH] usb-storage: do not rebuild when kernel version changes Replacing use of UTS_RELEASE with utsname()->release avoids that the usb-storage driver is recompiled each time the kernel version changes. Signed-off-by: Sam Ravnborg Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 7e7ec29782f1..8e898e3d861e 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -55,7 +55,7 @@ #include #include #include -#include +#include #include #include @@ -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;