Welcome to the new Linux Foundation Forum!

error: implicit declaration of function ‘interruptible_sleep_on’

mugil2301mugil2301 Posts: 1

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!!

Sign In or Register to comment.