Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp25884yba; Wed, 3 Apr 2019 03:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9h2YSplm33LEGd1vz4eO3NfgOLKv8MRaulI/Av2MTzUrsS/QSp4ihc8jak0mtkD0qluxf X-Received: by 2002:a17:902:3204:: with SMTP id y4mr35008806plb.80.1554288568551; Wed, 03 Apr 2019 03:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554288568; cv=none; d=google.com; s=arc-20160816; b=DLds4LRxdq+qW/uePAeMnCooNwLoKbBgkIyh4Yo79uURlKy/gOwaJHclQz0XDAqxtV 0s6leBak3LFOpEUeIXPxHeAwK1H5qLu2UOq+Gv5wweQ6n+htFP9uQI1Hyjh12A2C4/nm n00Ok5D0hzzj4CvW9+WHePIwZbxS+pmhP6x1p82gR+2AAkuJAb+rI1LbzYRsddQSsseb OKVY14xES+7W76TPUckbbibs0VQIkdl9gSQnjyeXVy+ChyKxI13fYa/3LMysz4S5g6c5 3x2F1W3t9dpn+Q2zbZzsvk8JXyjRGPLuXLsJuChfeOb3xiHP7ZIjQGD+3HI0+KlHydWA Tj7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=FufhWOB22QEZrJ/nh6jGXzOfDdFOJkHGQr3CFb/XHKI=; b=bqLjCSiof9EqW+XCrx6+MaRmkBRZ/F5rH0mNwgJ6U/bcOb8xBwkU/SorCm/ZSQA45x 3NY4Nrb7bxyo0vkiMbPDGIophqzSHuQbz+2gmxs/vsQ6s3hicEAwbq2IJVmOJvNmlAyF KOjgHAyXejKsXoF+gjHDo9DMG2wBJwb0ScYsuy5jsRyo5wzwp9wcNS3TCK1LN08aVudy oUSqPIhTcXWHUeRbRJlvKjPPYS/pqWat5J60xMdApvdgffBGK5bbrhqqH16tw1/81aMV hGpoPGapZOMMLjsEkutqBolbbX13Ym3G2RlrDQWTdZspRw+uukXWelS5gRobi9fXIHw1 WsbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si13318996pgi.233.2019.04.03.03.49.13; Wed, 03 Apr 2019 03:49:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727370AbfDCKsM (ORCPT + 99 others); Wed, 3 Apr 2019 06:48:12 -0400 Received: from terminus.zytor.com ([198.137.202.136]:48605 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726328AbfDCKsL (ORCPT ); Wed, 3 Apr 2019 06:48:11 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x33AlYOf1815150 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 3 Apr 2019 03:47:34 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x33AlXtX1815147; Wed, 3 Apr 2019 03:47:33 -0700 Date: Wed, 3 Apr 2019 03:47:33 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for Joel Fernandes (Google)" Message-ID: Cc: rostedt@goodmis.org, morten.rasmussen@arm.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, paulmck@linux.ibm.com, josh@joshtriplett.org, efault@gmx.de, joel@joelfernandes.org, jiangshanlai@gmail.com, luc.vanoostenryck@gmail.com, peterz@infradead.org, torvalds@linux-foundation.org, mathieu.desnoyers@efficios.com Reply-To: linux-kernel@vger.kernel.org, josh@joshtriplett.org, efault@gmx.de, paulmck@linux.ibm.com, joel@joelfernandes.org, luc.vanoostenryck@gmail.com, jiangshanlai@gmail.com, peterz@infradead.org, torvalds@linux-foundation.org, mathieu.desnoyers@efficios.com, rostedt@goodmis.org, morten.rasmussen@arm.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de In-Reply-To: <20190321003426.160260-4-joel@joelfernandes.org> References: <20190321003426.160260-4-joel@joelfernandes.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] rcuwait: Annotate task_struct with __rcu Git-Commit-ID: 03f4b48edae7d936c5bf23488c1ce3fbe7fc2733 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 03f4b48edae7d936c5bf23488c1ce3fbe7fc2733 Gitweb: https://git.kernel.org/tip/03f4b48edae7d936c5bf23488c1ce3fbe7fc2733 Author: Joel Fernandes (Google) AuthorDate: Wed, 20 Mar 2019 20:34:25 -0400 Committer: Ingo Molnar CommitDate: Wed, 3 Apr 2019 12:34:31 +0200 rcuwait: Annotate task_struct with __rcu 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) Signed-off-by: Peter Zijlstra (Intel) [ From an RCU perspective. ] Reviewed-by: Paul E. McKenney Cc: Josh Triplett Cc: Lai Jiangshan Cc: Linus Torvalds Cc: Luc Van Oostenryck Cc: Mathieu Desnoyers Cc: Mike Galbraith Cc: Morten Rasmussen Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Thomas Gleixner Cc: keescook@chromium.org Cc: kernel-hardening@lists.openwall.com Cc: kernel-team@android.com Link: https://lkml.kernel.org/r/20190321003426.160260-4-joel@joelfernandes.org Signed-off-by: Ingo Molnar --- 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) \