Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2127106yba; Wed, 3 Apr 2019 01:43:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoJlfOcbB1mrlU31aJWEPHNyTKXpXE5ynF2p1rXZjAni0HcOWX6xGDZLOXc9cOM23PiP/7 X-Received: by 2002:a63:114d:: with SMTP id 13mr49538546pgr.216.1554281016109; Wed, 03 Apr 2019 01:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554281016; cv=none; d=google.com; s=arc-20160816; b=mFlrtzHJD/UdUHn6917vLPzd1yJSS9jZ7S2tNdnYEt190PqMseVnjqGTKDq1hGB5B9 d39DNKwVjrJ+8HSV62pb/8Bnl+Ozs8Lvoy4anUnsT3gR0ggVatD3VZ3bDpaMRHTezUTt H4eKXH3WAhZFMlNC0JrvAKxRrPAI6vTtp9MDSqtThCs5DCZZSI9m/I+p1un0B7JVIIO1 emKjII2Z/oDqx4iHLbgKkg64sFThwwKiMRsiMQMQq3HEfgaZiaXz9iLHVGuJOjWCWigl xaT9gWE5ZhHyspgvvImzATDjKeslPLOFXlTM+G7K5g5frVQODFavuCoZ6DGy6MbzNUXT B7Fg== 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=DWCW0oAXtRjiHuH4kQKM57Ud2RL6s57XbyvWz63qM+s=; b=T0zZbkMBzwT0nynaja+SZdYiGD1dKEB9e17wiW37GMTLlG4EVMvbz1SJ1c27te6mtv IYjEXyT2KHHbpqK0IAvQtWfvR5ZCCbVfcUz3NJWcH9qyoygfC18zv0nPQWUNH/H91w/o inw7puXA8gRHsSKbcbJeWUOpLYJ9O02OgptFEIlcQQw3QFd40QanilG4wK+J4HllUPhM 4T74IScpsjzL2zEIjc6vaCcByu2r4rKtqvUvlCAScFCgsS/8GK+vu9/bjRhB+WGUiX3W LoNf8QQKumiEEigyvMWh7dJBveOmkvqZMsG71nuTdh0o8qh9t/IjucfdTuNFfVHG6IOb O5NQ== 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 r4si12935660plo.416.2019.04.03.01.43.20; Wed, 03 Apr 2019 01:43:36 -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 S1729290AbfDCImG (ORCPT + 99 others); Wed, 3 Apr 2019 04:42:06 -0400 Received: from terminus.zytor.com ([198.137.202.136]:32901 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbfDCImA (ORCPT ); Wed, 3 Apr 2019 04:42:00 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x338fNAY1775363 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 3 Apr 2019 01:41:23 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x338fMik1775358; Wed, 3 Apr 2019 01:41:22 -0700 Date: Wed, 3 Apr 2019 01:41:22 -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: peterz@infradead.org, paulmck@linux.ibm.com, torvalds@linux-foundation.org, hpa@zytor.com, efault@gmx.de, mingo@kernel.org, morten.rasmussen@arm.com, josh@joshtriplett.org, linux-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, joel@joelfernandes.org, jiangshanlai@gmail.com, luc.vanoostenryck@gmail.com, tglx@linutronix.de, rostedt@goodmis.org Reply-To: peterz@infradead.org, torvalds@linux-foundation.org, hpa@zytor.com, efault@gmx.de, paulmck@linux.ibm.com, morten.rasmussen@arm.com, josh@joshtriplett.org, linux-kernel@vger.kernel.org, mingo@kernel.org, luc.vanoostenryck@gmail.com, tglx@linutronix.de, jiangshanlai@gmail.com, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, joel@joelfernandes.org In-Reply-To: <20190321003426.160260-5-joel@joelfernandes.org> References: <20190321003426.160260-5-joel@joelfernandes.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/core: Annotate perf_domain pointer with __rcu Git-Commit-ID: 2e7d58babd2a6073d1afb38519e246dd4a423da5 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: 2e7d58babd2a6073d1afb38519e246dd4a423da5 Gitweb: https://git.kernel.org/tip/2e7d58babd2a6073d1afb38519e246dd4a423da5 Author: Joel Fernandes (Google) AuthorDate: Wed, 20 Mar 2019 20:34:26 -0400 Committer: Ingo Molnar CommitDate: Wed, 3 Apr 2019 09:51:04 +0200 sched/core: Annotate perf_domain pointer with __rcu This fixes the following sparse errors in sched/fair.c: fair.c:6506:14: error: incompatible types in comparison expression fair.c:8642:21: error: incompatible types in comparison expression Using __rcu will also help sparse catch any future bugs. 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-5-joel@joelfernandes.org Signed-off-by: Ingo Molnar --- kernel/sched/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 2b452d68ab2e..b52ed1ada0be 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -780,7 +780,7 @@ struct root_domain { * NULL-terminated list of performance domains intersecting with the * CPUs of the rd. Protected by RCU. */ - struct perf_domain *pd; + struct perf_domain __rcu *pd; }; extern struct root_domain def_root_domain;