Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664663

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

From Charlemagne Lasse <charlemagnelasse@gmail.com>
Newsgroups linux.kernel
Subject ./include/linux/err.h:35:16: warning: dereference of noderef expression
Date 2017-06-13 12:00 +0200
Message-ID <tRQMb-6li-21@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

I have following code which generates a warning when compiling with "make C=1".

~~~~~~~
struct task_struct *kthread;
kthread = kthread_create(xxxxx, yyyyy, "zzzzz");
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 using Debian stretch amd64. It seems like this is related to
the __force used in the parameter list of IS_ERR. Removing it also
removes the warning.

If it is fixed in sparse's git then when will there be a new release of it?

Greetings,
Charlemagne Lasse

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

./include/linux/err.h:35:16: warning: dereference of noderef expression Charlemagne Lasse <charlemagnelasse@gmail.com> - 2017-06-13 12:00 +0200
  Re: ./include/linux/err.h:35:16: warning: dereference of noderef  expression Luc Van Oostenryck <luc.vanoostenryck@gmail.com> - 2017-06-13 12:50 +0200

csiph-web