简体   繁体   中英

Linux semaphore_init: error implicit declaration of function 'semaphore_init'

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 ?

除非semaphore_init是你自己制作的函数,否则我认为你会想要sema_init

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM