Dont declare the wait queue in the include file. Declare it in the mod1.c file and export it (it should be exported by default).Mod.h :
int mod_open(struct inode * , struct file *); int mod_release(struct inode * , struct file *);
wait_queue_head_t wait;
I think the error is here.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/