From: Linus Torvalds <torvalds@linux-foundation.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: gyang <graf.yang@analog.com>, Bryan Wu <cooloney@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] serial_core: uart_set_ldisc (Was Re: Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA)
Date: Wed, 4 Jun 2008 08:59:49 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.1.10.0806040852500.3473@woody.linux-foundation.org> (raw)
In-Reply-To: <20080603151854.488af929@core>
On Tue, 3 Jun 2008, Alan Cox wrote:
>
> Linus: This change plus a follow up from the Blackfin guys is needed to
> avoid blackfin losing features in this release.
Alan, I applied this as "obviously safe", since nobody sets the uart-level
set_ldisc thing yet... BUT!
I now get an annoying compiler warning, and the compiler is definitely
right. You have:
static void uart_set_ldisc(struct tty_struct *tty, int ldisc)
..
.set_ldisc = uart_set_ldisc,
Oops. Totally wrong function type. Because the tty-level one is
void (*set_ldisc)(struct tty_struct *tty);
in my tree, and as a result I suspect you sent me the wrong version of a
patch (perhaps based on -mm or -next).
I assume I should just remove the (unused) "int ldisc" argument, but would
like to get confirmation first.
Linus
--
drivers/serial/serial_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 951a75e..c9b64e7 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -1165,7 +1165,7 @@ out:
return ret;
}
-static void uart_set_ldisc(struct tty_struct *tty, int ldisc)
+static void uart_set_ldisc(struct tty_struct *tty)
{
struct uart_state *state = tty->driver_data;
struct uart_port *port = state->port;
prev parent reply other threads:[~2008-06-04 16:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200804241929.m3OJToSE021045@hera.kernel.org>
2008-04-24 20:50 ` Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA Alan Cox
2008-04-25 9:22 ` Yang, Graf
2008-04-25 9:55 ` Alan Cox
2008-05-04 15:27 ` Bryan Wu
2008-05-04 15:56 ` Alan Cox
2008-06-03 2:18 ` gyang
2008-06-03 14:18 ` [PATCH] serial_core: uart_set_ldisc (Was Re: Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA) Alan Cox
2008-06-04 15:59 ` Linus Torvalds [this message]
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=alpine.LFD.1.10.0806040852500.3473@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=cooloney@kernel.org \
--cc=graf.yang@analog.com \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome