Article 519C8 implicit declaration of function ‘interruptible_sleep_on’

implicit declaration of function ‘interruptible_sleep_on’

by
mr_23
from LinuxQuestions.org on (#519C8)
Hi everyone!
I'm trying to make a kernel device driver. while compiling my code I got an errorQuote:
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 usedQuote:
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/cdev.h>
#include <linux/semaphore.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/types.h>
#include <linux/poll.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/fcntl.h>
#include <linux/sched/signal.h>
thank you!!latest?d=yIl2AUoC8zA latest?i=gWu47rYHhdU:Iu7GFxfY0oE:F7zBnMy latest?i=gWu47rYHhdU:Iu7GFxfY0oE:V_sGLiP latest?d=qj6IDK7rITs latest?i=gWu47rYHhdU:Iu7GFxfY0oE:gIN9vFwgWu47rYHhdU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments