Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: coreplayer2 on August 21, 2013, 01:04:18 AM

Title: FYI for compiling compatible drivers for kernel 3.8+
Post by: coreplayer2 on August 21, 2013, 01:04:18 AM
I have come across many issues compiling drivers for kernel 3.8.10 builds.

The first issue "error: implicit declaration of function ā€˜__devexit_p’ [-Werror=implicit-function-declaration]"
is fixed by removal of all references to __devinit,  __devexit and __devexit_p which are no longer supported in kernel 3.8.x

Along with references to __devexit_p are the parenthesis around the value passed to __devexit_p which need to be removed.
eg: on line with      = __devexit_p (driver remove),
edit to:   =driver remove,

Then the driver will compile (assuming no further issue to be addressed occur).


just an FYI, hope this helps build drivers for 3.8+   unless anyone has a better method?

 
Title: Re: FYI for compiling compatible drivers for kernel 3.8+
Post by: coreplayer2 on September 01, 2013, 06:03:17 PM
Next issue I've had references these two functions "kmap_atomic" and "kunmap_atomic"  which apparently no longer accepts two arguments in kernel-3.6 + onward

for example
kmap_atomic(sg->page, KM_IRQ0)
kunmap_atomic(buf, KM_IRQ0)

edited to
kmap_atomic(sg->page)
kunmap_atomic(buf)



compiles and runs without error.   best to allow the driver development team update and test, this works as a temporary measure at least.