[elrepo] RFE=306 :: alx driver :: compile question

Adrian Sevcenco Adrian.Sevcenco at cern.ch
Sun Dec 23 13:36:11 EST 2012


Hi guys! I have a question regarding RFE 306 :
(ID=0000306 http://elrepo.org/bugs/view.php?id=306)

How did you compile the driver? I try to compile the driver on Fedora 17 
x86_64 and i have some errors :

make -C /lib/modules/3.6.10-2.fc17.x86_64/build 
SUBDIRS=/root/ath_drv/alx_drv/src modules 
 

make[1]: Entering directory `/usr/src/kernels/3.6.10-2.fc17.x86_64' 
 

   CC [M]  /root/ath_drv/alx_drv/src/alx_main.o 
 

/root/ath_drv/alx_drv/src/alx_main.c: In function 
‘alx_request_msix_irq’: 
 

/root/ath_drv/alx_drv/src/alx_main.c:1827:3: error: implicit declaration 
of function ‘request_irq’ [-Werror=implicit-function-declaration] 

/root/ath_drv/alx_drv/src/alx_main.c:1836:3: error: implicit declaration 
of function ‘irq_set_affinity_hint’ 
[-Werror=implicit-function-declaration] 

/root/ath_drv/alx_drv/src/alx_main.c:1848:3: error: implicit declaration 
of function ‘free_irq’ [-Werror=implicit-function-declaration] 

/root/ath_drv/alx_drv/src/alx_main.c: In function ‘alx_request_irq’: 
 

/root/ath_drv/alx_drv/src/alx_main.c:1885:56: error: ‘IRQF_SHARED’ 
undeclared (first use in this function) 

/root/ath_drv/alx_drv/src/alx_main.c:1885:56: note: each undeclared 
identifier is reported only once for each function it appears in
/root/ath_drv/alx_drv/src/alx_main.c: In function ‘alx_tx_map’:
/root/ath_drv/alx_drv/src/alx_main.c:3874:6: error: incompatible type 
for argument 2 of ‘dma_map_page’
In file included from 
/usr/src/kernels/3.6.10-2.fc17.x86_64/arch/x86/include/asm/dma-mapping.h:44:0,
                  from include/linux/dma-mapping.h:76,
                  from include/linux/skbuff.h:33,
                  from include/linux/tcp.h:225,
                  from /root/ath_drv/alx_drv/src/alx_main.c:19:
include/asm-generic/dma-mapping-common.h:71:66: note: expected ‘struct 
page *’ but argument is of type ‘struct <anonymous>’
cc1: some warnings being treated as errors
make[2]: *** [/root/ath_drv/alx_drv/src/alx_main.o] Error 1
make[1]: *** [_module_/root/ath_drv/alx_drv/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.6.10-2.fc17.x86_64'
make: *** [default] Error 2

Thank you for any tips!
Adrian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1997 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.elrepo.org/pipermail/elrepo/attachments/20121223/20531db0/attachment.p7s>


More information about the elrepo mailing list