Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254AbdFMJz3 (ORCPT ); Tue, 13 Jun 2017 05:55:29 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36069 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbdFMJz1 (ORCPT ); Tue, 13 Jun 2017 05:55:27 -0400 MIME-Version: 1.0 From: Charlemagne Lasse Date: Tue, 13 Jun 2017 11:55:26 +0200 Message-ID: Subject: ./include/linux/err.h:35:16: warning: dereference of noderef expression To: linux-sparse@vger.kernel.org Cc: kernelnewbies@kernelnewbies.org, linux-kernel@vger.kernel.org, Jeff Layton , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 25 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