All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Alan Cox <alan@linux.intel.com>
Subject: Re: linux-next: build failure after merge of the final tree (tty tree related)
Date: Wed, 25 Jul 2012 15:47:31 -0700	[thread overview]
Message-ID: <20120725224731.GA14020@kroah.com> (raw)
In-Reply-To: <20120720150237.af0d271624511fc18705f287@canb.auug.org.au>

On Fri, Jul 20, 2012 at 03:02:37PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the final tree, today's linux-next build (powerpc
> allyesconfig) failed like this:
> 
> drivers/usb/serial/console.c: In function 'usb_console_setup':
> drivers/usb/serial/console.c:168:16: error: invalid type argument of '->' (have 'struct ktermios')
> drivers/usb/serial/console.c:169:4: error: incompatible type for argument 1 of 'tty_termios_encode_baud_rate'
> include/linux/tty.h:449:13: note: expected 'struct ktermios *' but argument is of type 'struct ktermios'
> 
> Caused by commit adc8d746caa6 ("tty: move the termios object into the
> tty").  Hopefully this is the last of them.
> 
> I have added the following fix patch for today:
> 
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Fri, 20 Jul 2012 14:58:31 +1000
> Subject: [PATCH] tty: fix up usb serial console for termios change.
> 
> fixes these errors:
> 
> drivers/usb/serial/console.c: In function 'usb_console_setup':
> drivers/usb/serial/console.c:168:16: error: invalid type argument of '->' (have 'struct ktermios')
> drivers/usb/serial/console.c:169:4: error: incompatible type for argument 1 of 'tty_termios_encode_baud_rate'
> include/linux/tty.h:449:13: note: expected 'struct ktermios *' but argument is of type 'struct ktermios'
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  drivers/usb/serial/console.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c
> index b9cca6d..9a56428 100644
> --- a/drivers/usb/serial/console.c
> +++ b/drivers/usb/serial/console.c
> @@ -165,8 +165,8 @@ static int usb_console_setup(struct console *co, char *options)
>  		}
>  
>  		if (serial->type->set_termios) {
> -			tty->termios->c_cflag = cflag;
> -			tty_termios_encode_baud_rate(tty->termios, baud, baud);
> +			tty->termios.c_cflag = cflag;
> +			tty_termios_encode_baud_rate(&tty->termios, baud, baud);
>  			memset(&dummy, 0, sizeof(struct ktermios));
>  			serial->type->set_termios(tty, port, &dummy);
>  

Alan, any objection to this?

greg k-h

  reply	other threads:[~2012-07-25 22:47 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20  5:02 linux-next: build failure after merge of the final tree (tty tree related) Stephen Rothwell
2012-07-25 22:47 ` Greg KH [this message]
2012-07-26  0:23   ` Alan Cox
2012-07-25 22:52 ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2013-10-28 14:33 Stephen Rothwell
2013-10-28 14:33 ` Stephen Rothwell
2013-10-28 14:49 ` Michal Simek
2013-10-28 16:05 ` Sören Brinkmann
2013-10-28 16:05   ` Sören Brinkmann
2013-10-28 16:33   ` Greg KH
2013-10-29  7:04     ` Stephen Rothwell
2013-09-27  8:21 Stephen Rothwell
2013-09-28  1:04 ` Greg KH
2013-04-02  7:57 Stephen Rothwell
2012-11-26 13:49 Stephen Rothwell
2012-11-26 14:35 ` Steven Rostedt
2012-11-26 23:05   ` Stephen Rothwell
2012-12-13 23:32     ` Stephen Rothwell
2012-12-13 23:38       ` Greg KH
2012-12-14  0:11         ` Steven Rostedt
2012-09-24 14:36 Stephen Rothwell
2012-09-25 22:41 ` Greg KH
2011-08-25  6:18 Stephen Rothwell
2011-08-25  6:18 ` Stephen Rothwell
2011-08-25 14:08 ` Greg KH
2011-08-25 14:08   ` Greg KH
2011-08-25 14:28   ` Timur Tabi
2011-08-25 14:28     ` Timur Tabi
2011-08-25 15:22   ` Timur Tabi
2011-08-25 15:22     ` Timur Tabi
2011-08-25 15:22     ` Timur Tabi
2011-08-25 15:51     ` Stephen Rothwell
2011-08-25 15:51       ` Stephen Rothwell
2011-08-25 15:51       ` Stephen Rothwell
2011-08-25 16:09       ` Arnaud Lacombe
2011-08-25 16:09         ` Arnaud Lacombe
2011-08-26  0:39         ` Stephen Rothwell
2011-08-26  0:39           ` Stephen Rothwell
2011-08-26 15:47           ` Arnaud Lacombe
2011-09-11  4:23             ` Stephen Rothwell
2011-09-11  9:05               ` Geert Uytterhoeven
2010-12-17  6:11 Stephen Rothwell
2010-12-17  7:04 ` Greg KH
2010-12-17 10:16   ` Thomas Gleixner
2011-01-06  3:27     ` Stephen Rothwell
2011-01-06 18:45       ` Greg KH
2010-11-12  1:57 Stephen Rothwell
2010-11-12 10:44 ` Alan Cox

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=20120725224731.GA14020@kroah.com \
    --to=greg@kroah.com \
    --cc=alan@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.