Skip to contentSkip to conversation

linux-next: ttydev tree build failure

DISCUSSION Aleksey Gorelov 1 participant 1 message Jul 18, 2008 Linux-next tree

lore
Share & tools
lore
#0 lore raw

----- Original Message ----

Quoted 58 lines

From: Stephen Rothwell <[email protected]>
To: Alan Cox <[email protected]>
Cc: [email protected]; Greg KH <[email protected]>; Aleksey Gorelov <[email protected]>
Sent: Friday, July 18, 2008 1:59:45 AM
Subject: linux-next: ttydev tree build failure

Hi Alan,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/usb/serial/usb_debug.c: In function 'usb_debug_open':
drivers/usb/serial/usb_debug.c:37: warning: passing argument 1 of 'usb_serial_generic_open' from incompatible pointer type drivers/usb/serial/usb_debug.c:37: warning: passing argument 2 of 'usb_serial_generic_open' from incompatible pointer type drivers/usb/serial/usb_debug.c:37: error: too few arguments to function 'usb_serial_generic_open'
drivers/usb/serial/usb_debug.c: At top level:
drivers/usb/serial/usb_debug.c:47: warning: initialization from incompatible pointer type

usb_debug_open was added in commit 1d051a41474c386498bc37e3ae89f7937222cfe7 ("USB: debug port converter does not accept more than 8 byte packets") from the usb tree.

I applied the patch below and will do so until it can be resolved.

Signature · 12 lines
Cheers,
Stephen Rothwell                    [email protected]

From 36676f026d56652cf4d42c13651373dc6a232141 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell 
Date: Fri, 18 Jul 2008 18:54:09 +1000
Subject: [PATCH] usb: tty API change fallout

Signed-off-by: Stephen Rothwell 
---
drivers/usb/serial/usb_debug.c |    4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/serial/usb_debug.c +2 -2
index 9ca4d4d..06a272b 100644
@@ -31,10 +31,10 @@ static struct usb_driver debug_driver = {
    .no_dynamic_id =     1,
 };
 
-int usb_debug_open(struct usb_serial_port *port, struct file *filp)
+int usb_debug_open(struct tty_struct *tty, struct usb_serial_port *port, struct 
 file *filp)
 {
    port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE;
-    return usb_serial_generic_open(port, filp);
+    return usb_serial_generic_open(tty, port, filp);
 }
 
Quoted 3 lines

static struct usb_serial_driver debug_device = {

Signature · 1 line
1.5.6.2

original patch was against 2.6.26 git which still has
int usb_serial_generic_open (struct usb_serial_port *port, struct file *filp)

Aleks.