Conexant HSFlinmodem + serial_core.c [was RE: conexant combo]

Ow Mun Heng ow.mun.heng at wdc.com
Wed Dec 3 05:27:57 UTC 2003


> -----Original Message-----
> From: Ow Mun Heng 
> Sent: Wednesday, December 03, 2003 9:51 AM
> To: fedora-list at redhat.com
> Subject: RE: conexant combo
> currently with the
> 2.4.23 kernel, it can't seem to compile. It used to compile 
> fine when I
> patched serial_core.c at line 1073
> 
> from 
> 
> [original]                                                    
>              
>         down(&state->count_sem);
>         spin_lock_irqsave(&info->lock, flags);
>         if ((tty->count) == 1) && (state->count != 1)) {
>                 /*
>                  * Uh, oh.  tty->count is 1, which means that the tty
>                  * structure will be freed.  state->count 
> should always
> [Patched]
> 	down(&state->count_sem);
>         spin_lock_irqsave(&info->lock, flags);
>    ---> if ((atomic_read(&tty->count) == 1) && (state->count != 1)) {
>                 /*
>                  * Uh, oh.  tty->count is 1, which means that the tty
>                  * structure will be freed.  state->count 
> should always
> 
> But now with that patch, I get this during compile..
> 
> * cimpiling (gcc) serial_hsf.c
> in file included from serial_hsf.c:897
> serial_core.c : In function `uart close`:
> serial_core.c :1073 request for member 'counter' in something not a
> structure or a union
> 
> make : ***[serial_hsf.o] Error 1

Additional Info.
Found a site on the net that says that if I were to change the line from

if ((tty->count == 1) && (state->count != 1)) {
to
if (((tty->count.counter) == 1) && (state->count != 1)) {

It should compile fine... According to him, it's based/tested on FC1. 
[From http://freax.be/]

I tried it.. and it does not work.. Does anyone have any workaround for
this??


 





More information about the fedora-list mailing list