When defining t_ioctl like this, I get no warning:
long t_ioctl(struct file *filep, unsigned int cmd, unsigned long input){
When defining t_ioctl like this:
static long t_ioctl(struct file *filep, unsigned int cmd, unsigned long input){
I get the warning:
warning: 't_ioctl' defined but not used
but when it is up to t_read or t_write the static and non static function declaration doesn’t cause the warning. e.g:
static ssize_t t_read(struct file *filp, char __user * buf, size_t count, loff_t * f_pos);
Why do I get the warning in one case and not the other?
Most likely you have a definition like this in the same file:
And you’re missing