: sgiserial 1/7: flags are unsigned long
PATCH 1/1 : sgiserial 1/7: flags are unsigned long
Hi
flags should be long, not int.
build/drivers/sgi/char/sgiserial.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
build/drivers/sgi/char/sgiserial.c renamed from build/drivers/sgi/char/sgiserial.c~sgserial_flags +6 -3
@@ -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_strucstruct 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;
_
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
Quoted 1 line · Juan Quintela
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