Welcome to the Linux Foundation Forum!

error: implicit declaration of function ‘interruptible_sleep_on’

Hello everyone!!

I'm trying to make a kernel device driver. while compiling my code I got an error

error: implicit declaration of function ‘interruptible_sleep_on’ [-Werror=implicit-function-declaration]
line: interruptible_sleep_on(&wait);

and here i have attached the headers for your reference which i used
<linux/kernel.h>
<linux/slab.h>
<linux/module.h>
<linux/init.h>
<linux/device.h>
<linux/fs.h>
<linux/uaccess.h>
<linux/cdev.h>
<linux/semaphore.h>
<linux/ioport.h>
<linux/io.h>
<linux/kernel.h>
<linux/miscdevice.h>
<linux/types.h>
<linux/poll.h>
<linux/interrupt.h>
<linux/spinlock.h>
<linux/wait.h>
<linux/sched.h>
<linux/semaphore.h>
<linux/fcntl.h>
<linux/sched/signal.h>

Someone help me to out from this.
Thanks!!

Categories

Upcoming Training