On 2012-05-31 06:43, Ian Abbott wrote:
>> If you then run make, it will fail, with an error in comedi-HEAD-
>> c40b2f5/include/linux/firmware.h where it was calling a kernel
>> function with the wrong number of parameters.
>>
>> So the only modification that is needed is to modify one line in:
>> comedi-HEAD-c40b2f5/include/linux/firmware.h
>> Change line 11 from:
>> #if LINUX_VERSION_CODE< KERNEL_VERSION(2,6,33)
>> to:
>> #if LINUX_VERSION_CODE< KERNEL_VERSION(2,6,32)
>>
>> Although the kernel used in SL6.1 is 2.6.32, as the comedi
>> documentation specifies RHEL heavily modifies the kernels and it's
>> likely that the requisite change here was backported. Changing the
>> "33" in the #if macro to "32" make the kernel modules compile without
>> issue.
> Thanks for the report. It looks like we'll need to add a test in the
> configure scripts for this.
>
> Also, with the new version of request_firmware_nowait(), the callback
> function is meant to call release_firmware(), which it doesn't at the
> moment, leading to a memory leak. This shouldn't be called if the
> underlying request_firmware_nowait() is the old version.
>
> I'll have a think about it some more before I fix it.
This should be fixed in git now if you want to check it builds properly.