Re: [PATCH 01/12] f81232: correct stubbed termios handler

From: Greg KH
Date: Tue Jun 26 2012 - 22:22:34 EST


On Fri, Jun 22, 2012 at 04:36:42PM +0100, Alan Cox wrote:
> Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
> ---
>
> drivers/usb/serial/f81232.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c
> index 499b15f..acd3267 100644
> --- a/drivers/usb/serial/f81232.c
> +++ b/drivers/usb/serial/f81232.c
> @@ -177,6 +177,7 @@ static void f81232_set_termios(struct tty_struct *tty,
> return;
>
> /* Do the real work here... */
> + tty_termios_copy_hw(&tty->termios, old_termios);
> }

This patch breaks the build:

drivers/usb/serial/f81232.c: In function âf81232_set_termiosâ:
drivers/usb/serial/f81232.c:180:2: warning: passing argument 1 of âtty_termios_copy_hwâ from incompatible pointer type [enabled by default]
include/linux/tty.h:454:13: note: expected âstruct ktermios *â but argument is of type âstruct ktermios **â

I know the driver isn't complete, but it should at least build :)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/