* [PATCH]: sgiserial 1/7: flags are unsigned long
@ 2003-03-27 2:53 Juan Quintela
2003-03-27 12:44 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Juan Quintela @ 2003-03-27 2:53 UTC (permalink / raw)
To: Ralf Baechle, mipslist
Hi
flags should be long, not int.
build/drivers/sgi/char/sgiserial.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff -puN build/drivers/sgi/char/sgiserial.c~sgserial_flags build/drivers/sgi/char/sgiserial.c
--- 24/build/drivers/sgi/char/sgiserial.c~sgserial_flags 2003-03-22 01:37:45.000000000 +0100
+++ 24-quintela/build/drivers/sgi/char/sgiserial.c 2003-03-22 01:43:17.000000000 +0100
@@ -886,7 +886,8 @@ static void zs_cons_put_char(char ch)
{
struct sgi_zschannel *chan = zs_conschan;
volatile unsigned char junk;
- int flags, loops = 0;
+ unsigned long flags;
+ int loops = 0;
save_flags(flags); cli();
while(((junk = chan->control) & Tx_BUF_EMP)==0 && loops < 10000) {
@@ -911,7 +912,8 @@ static void rs_put_char(struct tty_struc
struct sgi_zschannel *chan =
((struct sgi_serial *)tty->driver_data)->zs_channel;
volatile unsigned char junk;
- int flags, loops = 0;
+ unsigned long flags;
+ int loops = 0;
save_flags(flags); cli();
while(((junk = chan->control) & Tx_BUF_EMP)==0 && loops < 10000) {
@@ -1854,7 +1856,8 @@ volatile int test_done;
/* rs_init inits the driver */
int rs_init(void)
{
- int chip, channel, i, flags;
+ unsigned long flags;
+ int chip, channel, i;
struct sgi_serial *info;
_
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]: sgiserial 1/7: flags are unsigned long
2003-03-27 2:53 [PATCH]: sgiserial 1/7: flags are unsigned long Juan Quintela
@ 2003-03-27 12:44 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-03-27 12:44 UTC (permalink / raw)
To: Juan Quintela; +Cc: mipslist
On Thu, Mar 27, 2003 at 03:53:43AM +0100, Juan Quintela wrote:
> Subject: [PATCH]: sgiserial 1/7: flags are unsigned long
I applied the whole series of sgiserial patches.
I'm tired of maintaining the dead support for running IRIX's X server on
Linux. It was never working more than marginally and since Miguel de
Icaza has given up working on that in favor of Gnome the code is just a
maintenance pain. Worse, probably there's haven a dozen bad bugs hidden
in there allowing users to crash the system or do other sinister stuff.
So if you want to continue your cleanup cruzade by eleminating
drivers/sgi/ - I'm all for it :-)
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-27 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27 2:53 [PATCH]: sgiserial 1/7: flags are unsigned long Juan Quintela
2003-03-27 12:44 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox