Fix for init_MUTEX problem in NetFPGA kernel module
I had trouble compiling the latest kernel driver for the NetFPGA “classic” card. Basically the driver depends on init_MUTEX which as of the 2.6.37 kernel is no longer supported. Instead you should be using init_sema instead.
I’ve made a quick patch ( nf2main-use-sema-init.patch ) that switches to init_sema on 2.6.37 and above but uses the original init_MUTEX on kernels that support it. I’ve emailed a copy of the patch (such that it is) to the original author. Hopefully it will get committed to the repository soon or at least an alternative fix provided.
blog comments powered by Disqus