Re: build broken for ia64 simserial.c

From: Andreas Schwab <schwab_at_suse.de>
Date: 2006-01-14 09:46:38
"Luck, Tony" <tony.luck@intel.com> writes:

> Alan,
>
> TTY layer buffering revamp broke ia64.
>
>   CC      arch/ia64/hp/sim/simserial.o
> arch/ia64/hp/sim/simserial.c: In function `receive_chars':
> arch/ia64/hp/sim/simserial.c:170: error: structure has no member named `flip'
> arch/ia64/hp/sim/simserial.c:172: error: structure has no member named `flip'
> arch/ia64/hp/sim/simserial.c:174: error: structure has no member named `flip'
> arch/ia64/hp/sim/simserial.c:176: error: structure has no member named `flip'
> arch/ia64/hp/sim/simserial.c:177: error: structure has no member named `flip'
> arch/ia64/hp/sim/simserial.c:178: error: structure has no member named `flip'
> make[1]: *** [arch/ia64/hp/sim/simserial.o] Error 1
>
> Any quick hints on the fix?

This should work (untested):

--- linux/arch/ia64/hp/sim/simserial.c.~1~	2006-01-13 16:02:17.213612854 +0100
+++ linux/arch/ia64/hp/sim/simserial.c	2006-01-13 23:44:03.594619721 +0100
@@ -167,15 +167,9 @@ static  void receive_chars(struct tty_st
 			}
 		}
 		seen_esc = 0;
-		if (tty->flip.count >= TTY_FLIPBUF_SIZE) break;
 
-		*tty->flip.char_buf_ptr = ch;
-
-		*tty->flip.flag_buf_ptr = 0;
-
-		tty->flip.flag_buf_ptr++;
-		tty->flip.char_buf_ptr++;
-		tty->flip.count++;
+		if (tty_insert_flip_char(tty, ch, TTY_NORMAL) == 0)
+			break;
 	}
 	tty_flip_buffer_push(tty);
 }

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Jan 14 09:48:06 2006

This archive was generated by hypermail 2.1.8 : 2006-01-14 09:48:13 EST