[hcflinux] Redhat 9 fix for HCF modem

Ed . epo001 at hotmail.com
Wed Apr 9 18:30:04 EDT 2003


Hi guys,

The driver no longer compiles on RH9. This is the equivalent of Alexander 
Istomin's fix for the HCF driver (version hcfpcimodem-0.99mbsibeta02123100).

Works on my system, apply the patch before make install:

Patch follows.

Ed

*** osservices.c.orig   2003-04-09 12:56:04.000000000 +0100
--- osservices.c        2003-04-09 13:01:21.000000000 +0100
***************
*** 395,404 ****
        unlock_kernel();

!       spin_lock_irq(&curtask->sigmask_lock);
        sigemptyset(&curtask->blocked);
        flush_signals(curtask);
        { // flush_signal_handlers
                int i;
!               struct k_sigaction *ka = &curtask->sig->action[0];
                for (i = _NSIG ; i != 0 ; i--) {
                        if (ka->sa.sa_handler != SIG_IGN)
--- 395,404 ----
        unlock_kernel();

!       spin_lock_irq(&curtask->sighand->siglock);
        sigemptyset(&curtask->blocked);
        flush_signals(curtask);
        { // flush_signal_handlers
                int i;
!               struct k_sigaction *ka = &curtask->sighand->action[0];
                for (i = _NSIG ; i != 0 ; i--) {
                        if (ka->sa.sa_handler != SIG_IGN)
***************
*** 410,414 ****
        }
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
!       recalc_sigpending(curtask);
  #endif
        spin_unlock_irq(&curtask->sigmask_lock);
--- 410,414 ----
        }
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
!       recalc_sigpending();
  #endif
        spin_unlock_irq(&curtask->sigmask_lock);
***************
*** 428,435 ****
        }

!       spin_lock_irq(&curtask->sigmask_lock);
        flush_signals(curtask);
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
!       recalc_sigpending(curtask);
  #endif
        spin_unlock_irq(&curtask->sigmask_lock);
--- 428,435 ----
        }

!       spin_lock_irq(&curtask->sighand->siglock);
        flush_signals(curtask);
  #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
!       recalc_sigpending();
  #endif
        spin_unlock_irq(&curtask->sigmask_lock);


_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out 
http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059




More information about the hcflinux mailing list