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

Phil Perry phil at elrepo.org
Sun Dec 23 14:36:29 EST 2012


On 23/12/12 18:36, Adrian Sevcenco wrote:
> Hi guys! I have a question regarding RFE 306 :
> (ID=0000306 http://elrepo.org/bugs/view.php?id=306)
>

Hi Adrian,

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

See comment 0002519 in the above bug for details.

It builds fine on RHEL6. RHEL6 is a supported build target.


> 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
>

You should contact the backports mailing list where development of the 
compat-wireless source takes place:

http://vger.kernel.org/vger-lists.html#backports

I'm not sure if Fedora is supported as a build target nor how different 
the Fedora kernel is from a vanilla upstream kernel. You might need to 
patch the code to support Fedora as a build target but it shouldn't be 
too difficult getting just one driver to build against a modern kernel. 
But I don't run Fedora so I'm not the person to help you fix it.

Hope that helps,

Phil

PS - a little history surrounding the alx driver - the alx driver first 
appeared in the 3.5 branch of the compat-wireless crap patch set and was 
also present in the 3.6 branch. As the authors failed to submit the 
driver upstream to the Linux kernel, the compat-wireless maintainers 
pulled (or planned to pull) the driver from the 3.7 release in an effort 
to encourage the authors to submit it to the Linux kernel staging area 
for new drivers and for development to take place there. Thus, I'm not 
actually sure if the driver is even still present in the latest 
compat-wireless snapshots at which point it's legacy and no one from 
compat-wireless will want to assist you. These discussions took place on 
the backports ML around 8/9 October 2012 - the driver we release 
forRHEL6 is based on a nightly snapshot taken from 23rd Sept 2012. Just 
thought I'd mention that before you wade into the backports list asking 
for help - suggest you pull the latest tarballs and see if the driver is 
actually still present, or not.



More information about the elrepo mailing list