Re: ./include/linux/err.h:35:16: warning: dereference of noderef expression

2017-06-16 Thread Luc Van Oostenryck
yy, "z"); > if (IS_ERR(kthread)) { > ~~~ > > The warning is > > ./include/linux/err.h:35:16: warning: dereference of noderef expression > > And disappears when I remove the IS_ERR. How do I correctly work > around this incorrect warning? > > Btw. I am us

./include/linux/err.h:35:16: warning: dereference of noderef expression

2017-06-16 Thread Charlemagne Lasse
Hi, I have following code which generates a warning when compiling with "make C=1". ~~~ struct task_struct *kthread; kthread = kthread_create(x, y, "z"); if (IS_ERR(kthread)) { ~~~ The warning is ./include/linux/err.h:35:16: warning: dereference o