On Mon, May 26, 2008 at 03:13:43AM +0700, Iwan Budi Kusnanto wrote: > /** > * this code is compiled & working in 2.4 kernel. > * Compiled in 2.6 but fail in module initialization. > */ > static struct semaphore sem_fail; > > static init __init my_module_init_fail(void) > { > sema_init (&sem_fail, 1); > } I forgot to say that the intended way for you to do this in 2.6 is: static DECLARE_MUTEX(sem_fail); BTW, have you considered using a struct mutex instead of a struct semaphore? -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ