From patchwork Sat Feb 23 06:34:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10827431 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 550951823 for ; Sat, 23 Feb 2019 10:40:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41CF12F96A for ; Sat, 23 Feb 2019 10:40:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35CE52F9AB; Sat, 23 Feb 2019 10:40:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 711CC2F96A for ; Sat, 23 Feb 2019 10:40:41 +0000 (UTC) Received: (qmail 9621 invoked by uid 550); 23 Feb 2019 10:40:23 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Delivered-To: moderator for kernel-hardening@lists.openwall.com Received: (qmail 15711 invoked from network); 23 Feb 2019 06:35:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CqF7P151YJVMLZIvwWfeCbnvQFr03nry4lyp7ZYlhMI=; b=oR7uWW5YXfiw9asF+Ad74Itgz6k54aF+dHzzRvIVX3DTAM9N+XTP9dlnFfEdGhDwgq D+sBaV98aHp9dtAPdWiy1tr3ygPvTWz/EwwxVuZn7vjZGkZMyTYrbuAVsg2OoUn2s634 Oay9Xr5t8Npx4mvey2RRgU8Z0tRiRYhaSl8EM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CqF7P151YJVMLZIvwWfeCbnvQFr03nry4lyp7ZYlhMI=; b=p6+NR7L6iBfn6ybYkS4eXA0aahT20p4wI3qqdTNnFwpkKwRMFKxNWhGGPSG6K9ADoT 5/h62L4AWA3Ot/NJBsvZAATRIfc21lORXnABUTqjNCD3eQZ7VTfHmvWWik9o9aK3nhUB aqJWfyXb5m/e/DQh6M+u3Q+uSy6ovKnqVANjeNsob3diHcQhRQkKCiKuT1Aq6dqoXDtt 14XxQf5ZF7C4/eNCBx8f9FnEOR5t1JC4rJI0unNfTKmJKnqWdjVaOv+NUGwcitWDJKUS sn41mKLVDuHUf8aDIsM6kPx5PC3gtSrp9ZFFv2A2TzOkzIZPGmD/YIMZ0309T+Q+Sncj N0Og== X-Gm-Message-State: AHQUAubZZkQXov/TQ0ggFspjKktXbXnlkL3KlKINvD+ltrJ1TCVfNJ52 Vz02Db8mFUyGIaPHlfY2zpgkLA== X-Google-Smtp-Source: AHgI3Ib9Txqt1JH00OmpwHDqOocPB8iKGf16Cn0P15mQw+j+/8JuXRaNYadfDGqeQAA2qPTefc1nGQ== X-Received: by 2002:a0c:ae27:: with SMTP id y36mr6195543qvc.185.1550903699062; Fri, 22 Feb 2019 22:34:59 -0800 (PST) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Alexei Starovoitov , Christian Brauner , Daniel Borkmann , David Ahern , "David S. Miller" , Ingo Molnar , Jakub Kicinski , Jeff Kirsher , Jesper Dangaard Brouer , John Fastabend , Josh Triplett , keescook@chromium.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, Kirill Tkhai , Lai Jiangshan , Martin KaFai Lau , Mathieu Desnoyers , netdev@vger.kernel.org, "Paul E. McKenney" , Peter Zijlstra , Quentin Perret , rcu@vger.kernel.org, Song Liu , Steven Rostedt , Vincent Guittot , xdp-newbies@vger.kernel.org, Yonghong Song Subject: [PATCH v2 5/6] rcuwait: Annotate task_struct with __rcu Date: Sat, 23 Feb 2019 01:34:33 -0500 Message-Id: <20190223063434.6793-6-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.rc0.258.g878e2cd30e-goog In-Reply-To: <20190223063434.6793-1-joel@joelfernandes.org> References: <20190223063434.6793-1-joel@joelfernandes.org> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP This suppresses sparse error generated due to the recently added rcu_assign_pointer sparse check. percpu-rwsem.c:162:9: sparse: error: incompatible types in comparison expression exit.c:316:16: sparse: error: incompatible types in comparison expression Signed-off-by: Joel Fernandes (Google) Reviewed-by: Paul E. McKenney --- include/linux/rcuwait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcuwait.h b/include/linux/rcuwait.h index 90bfa3279a01..563290fc194f 100644 --- a/include/linux/rcuwait.h +++ b/include/linux/rcuwait.h @@ -18,7 +18,7 @@ * awoken. */ struct rcuwait { - struct task_struct *task; + struct task_struct __rcu *task; }; #define __RCUWAIT_INITIALIZER(name) \