From: Thomas Schlichter <thomas.schlichter@web.de>
To: Andrew Morton <akpm@osdl.org>, Russell King <rmk+lkml@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 2.6.1-mm3
Date: Wed, 14 Jan 2004 20:12:05 +0100 [thread overview]
Message-ID: <200401142012.05388.thomas.schlichter@web.de> (raw)
In-Reply-To: <20040114014846.78e1a31b.akpm@osdl.org>
[-- Attachment #1.1: body text --]
[-- Type: text/plain, Size: 948 bytes --]
Hi,
the patch "serial-03-fixups.patch" introduced following compile error:
CC [M] drivers/char/riscom8.o
drivers/char/riscom8.c: In function `rc_tiocmget':
drivers/char/riscom8.c:1323: error: `result' undeclared (first use in this
function)
drivers/char/riscom8.c:1323: error: (Each undeclared identifier is reported
only once
drivers/char/riscom8.c:1323: error: for each function it appears in.)
drivers/char/riscom8.c: In function `rc_tiocmset':
drivers/char/riscom8.c:1336: Warnung: unused variable `arg'
drivers/char/riscom8.c: At top level:
drivers/char/riscom8.c:1669: error: `rx_tiocmset' undeclared here (not in a
function)
drivers/char/riscom8.c:1669: error: initializer element is not constant
drivers/char/riscom8.c:1669: error: (near initialization for
`riscom_ops.tiocmset')
drivers/char/riscom8.c:1334: Warnung: `rc_tiocmset' defined but not used
The attached patch fixes it...
Thomas Schlichter
[-- Attachment #1.2: fix_riscom8.diff --]
[-- Type: text/x-diff, Size: 1349 bytes --]
--- linux-2.6.1-mm3/drivers/char/riscom8.c.orig 2004-01-14 19:24:19.684774056 +0100
+++ linux-2.6.1-mm3/drivers/char/riscom8.c 2004-01-14 19:31:05.567070568 +0100
@@ -1311,6 +1311,7 @@
struct riscom_port *port = (struct riscom_port *)tty->driver_data;
struct riscom_board * bp;
unsigned char status;
+ unsigned int result;
unsigned long flags;
if (rc_paranoia_check(port, tty->name, __FUNCTION__))
@@ -1322,18 +1323,18 @@
status = rc_in(bp, CD180_MSVR);
result = rc_in(bp, RC_RI) & (1u << port_No(port)) ? 0 : TIOCM_RNG;
restore_flags(flags);
- return ((status & MSVR_RTS) ? TIOCM_RTS : 0)
+ result |= ((status & MSVR_RTS) ? TIOCM_RTS : 0)
| ((status & MSVR_DTR) ? TIOCM_DTR : 0)
| ((status & MSVR_CD) ? TIOCM_CAR : 0)
| ((status & MSVR_DSR) ? TIOCM_DSR : 0)
| ((status & MSVR_CTS) ? TIOCM_CTS : 0);
+ return result;
}
static int rc_tiocmset(struct tty_struct *tty, struct file *file,
unsigned int set, unsigned int clear)
{
struct riscom_port *port = (struct riscom_port *)tty->driver_data;
- unsigned int arg;
unsigned long flags;
struct riscom_board *bp;
@@ -1666,7 +1667,7 @@
.start = rc_start,
.hangup = rc_hangup,
.tiocmget = rc_tiocmget,
- .tiocmset = rx_tiocmset,
+ .tiocmset = rc_tiocmset,
};
static inline int rc_init_drivers(void)
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-01-14 19:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-14 9:48 2.6.1-mm3 Andrew Morton
2004-01-14 12:27 ` 2.6.1-mm3 Jes Sorensen
2004-01-14 13:06 ` 2.6.1-mm3 Dmitry Torokhov
2004-01-14 16:04 ` 2.6.1-mm3 (compile stats) John Cherry
2004-01-14 19:11 ` 2.6.1-mm3 Thomas Schlichter
2004-01-14 19:11 ` 2.6.1-mm3 Thomas Schlichter
2004-01-14 19:12 ` 2.6.1-mm3 Thomas Schlichter
2004-01-14 19:12 ` Thomas Schlichter [this message]
2004-01-14 19:12 ` 2.6.1-mm3 Thomas Schlichter
2004-01-15 1:47 ` 2.6.1-mm3 Roberto Sanchez
2004-01-15 2:39 ` 2.6.1-mm3 Nick Piggin
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=200401142012.05388.thomas.schlichter@web.de \
--to=thomas.schlichter@web.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rmk+lkml@arm.linux.org.uk \
/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