From: Greg KH <greg@kroah.com>
To: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] More USB fixes for 2.5.68
Date: Thu, 24 Apr 2003 16:47:31 -0700 [thread overview]
Message-ID: <1051228051504@kroah.com> (raw)
In-Reply-To: <10512280511698@kroah.com>
ChangeSet 1.1165.2.2, 2003/04/23 12:04:22-07:00, akpm@digeo.com
[PATCH] usb: minor usb stuff
- nail a couple of warnings
- usbnet is not compilable with gcc-2.95.3. Fix.
drivers/usb/class/usb-midi.c | 2 +-
drivers/usb/net/kaweth.c | 2 +-
drivers/usb/net/usbnet.c | 8 ++++++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff -Nru a/drivers/usb/class/usb-midi.c b/drivers/usb/class/usb-midi.c
--- a/drivers/usb/class/usb-midi.c Thu Apr 24 16:28:38 2003
+++ b/drivers/usb/class/usb-midi.c Thu Apr 24 16:28:38 2003
@@ -820,7 +820,7 @@
struct list_head *devs, *mdevs;
struct usb_midi_state *s;
struct usb_mididev *m;
- int flags;
+ unsigned long flags;
int succeed = 0;
#if 0
diff -Nru a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
--- a/drivers/usb/net/kaweth.c Thu Apr 24 16:28:39 2003
+++ b/drivers/usb/net/kaweth.c Thu Apr 24 16:28:39 2003
@@ -744,7 +744,7 @@
}
}
- private_header = __skb_push(skb, 2);
+ private_header = (u16 *)__skb_push(skb, 2);
*private_header = cpu_to_le16(skb->len-2);
kaweth->tx_skb = skb;
diff -Nru a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
--- a/drivers/usb/net/usbnet.c Thu Apr 24 16:28:38 2003
+++ b/drivers/usb/net/usbnet.c Thu Apr 24 16:28:39 2003
@@ -314,8 +314,12 @@
: (in_interrupt () ? "in_interrupt" : "can sleep"))
#ifdef DEBUG
-#define devdbg(usbnet, fmt, arg...) \
- printk(KERN_DEBUG "%s: " fmt "\n" , (usbnet)->net.name, ## arg)
+#define devdbg(usbnet, fmt, arg...) \
+ do { \
+ printk(KERN_DEBUG "%s:", (usbnet)->net.name); \
+ printk(fmt, ## arg); \
+ printk("\n"); \
+ } while (0)
#else
#define devdbg(usbnet, fmt, arg...) do {} while(0)
#endif
next prev parent reply other threads:[~2003-04-24 23:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 23:46 [BK PATCH] USB changes for 2.5.68 Greg KH
2003-04-24 23:47 ` [PATCH] More USB fixes " Greg KH
2003-04-24 23:47 ` Greg KH [this message]
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-24 23:47 ` Greg KH
2003-04-25 4:14 ` [BK PATCH] USB changes " Greg KH
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=1051228051504@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).