1
votes

I recently updated Ubuntu from 10.04 to 12.04 this changed the linux Kernel from 2.6.35-30-server to 3.0.0-29-server. After the update I am currently getting an error when I am compiling my driver code.

error: implicit declaration of function 'semaphore_init' [-Werror=implict-function-declaration].

How do I resolve this ?

1

1 Answers

3
votes

Unless semaphore_init is a function of your own making, I think you'll want sema_init instead.