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:
.
and here i have attached the headers for your reference which i usedQuote:
thank you!!


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