Re: amrmo_init.c:612: error: 'SA_SHIRQ' undeclared part 2 with slax

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

 



Joern,

Thanks.  Did in amrmo_init.c :

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
        ret = request_irq(amrmo->irq, &amrmo_pci_interrupt,IRQF_SHARED,
                                  amrmo->name,amrmo);
#else
        ret = request_irq(amrmo->irq, &amrmo_pci_interrupt,SA_SHIRQ,
                                  amrmo->name,amrmo);
#endif

and the compiling now succeeds using both 2.6.22 and 2.6.24 resources.
However lacking a Smartlink modem, I cannot test the slamr.ko  driver
for functionality

MarvS

On Wed, Feb 27, 2008 at 2:33 AM, Joern Wuestenfeld <j.wuestenfeld@xxxxxx> wrote:
> Hi Marvin,
>
>  there exists a macro in the kernel:
>
>  KERNEL_VERSION(a,b,c)
>
>  which converts a kernel version triplet to an internal used variable
>  named LINUX_VERSION_CODE.
>   So to check for 2.6.24, do:
>
>  #if (KERNEL_VERSION(2.6.24) > LINUX_VERSION_CODE)
>     <use IRQF_SHARED>
>  #else
>     <use SA_SHIRQ>
>  #endif
>
>  Hoe this helps,
>
>  Joern
>
>

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux