Conexant hsflinmodem + serial_core.c troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm having problems compiling the beta hsf drivers from www.linuxant.com
(using version 5, even the newest free-but-crippled version 6) currently
with the 2.4.23 kernel, it can't seem to compile. It used to compile fine(on
2.4.22 series kernel) 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

I've also 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[same error].. Does anyone have any
workaround for
this?? 


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux