From patchwork Sat Feb 23 06:34:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10827433 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 938DA17E9 for ; Sat, 23 Feb 2019 10:40:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 811612F96A for ; Sat, 23 Feb 2019 10:40:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74B8E2F9AB; Sat, 23 Feb 2019 10:40:52 +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 A718E2F96A for ; Sat, 23 Feb 2019 10:40:51 +0000 (UTC) Received: (qmail 11369 invoked by uid 550); 23 Feb 2019 10:40:31 -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 15769 invoked from network); 23 Feb 2019 06:35:12 -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=c11Ywbk20nC8e/qjunfo9WwGcMogUJINp1i/rWGd08s=; b=PPEj7VcsX7GuoS9pbDmowmREOrTcSy3Dj461kk5FZcZJFK1aPfti5PndMTK4chG0Af v5egDRsZIECwwjGy3GGyr/aCNrEkUBjw2CnB+5LssuW0QOKPd20jb6sC1Br4Ew6WH2T/ ifjANVdD1BRTqfhSTjcMOQwJg4GPR2rK9OR8I= 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=c11Ywbk20nC8e/qjunfo9WwGcMogUJINp1i/rWGd08s=; b=dNBqLk2c/4kYiugWd/j70XXcPeXoyqNGpYL6hUUp9zPQOj0gnLjWXyw1NVlvV6UTJY tyxQJ5qpitCOEFkBbNupfUcKiGYB0HA3CuCM5g8xlRfEuAGVhhQkhAouV2GRdTULOn0h m2wvmBY8/x2p1nI4L/awoD2fJX8DEiK+9CRfl6DxiUWXRnMuEzg/9rrc7jBP4yL4AMxK vAZbEjvFAbXfealap21cvp9qIPsBQV21t+hudRzoIiSKk8rJCNMGE2TcCj3tpnO/V9hq S6VguJPoXE+btHSOaXZj5NUpkKlolUgHL6QXfkaARItarFpltmcPAMJFiaEWn7lQjHfx K1dA== X-Gm-Message-State: AHQUAuZhveH4KgQ/j/KVKd8Y+w8sPlg1JWrX1qlv5gpuiT4Q5jRJoo8e ImDG+9o3sqdmhGoHVDA1tMmztA== X-Google-Smtp-Source: AHgI3IaQaWIDhu712jidCK5mnMSqSaUBd1cvjuYOZ04s+y+aFdPkG7M0MgZpCLNFmNw19uUjpE6x6Q== X-Received: by 2002:ac8:19f5:: with SMTP id s50mr6018714qtk.25.1550903700787; Fri, 22 Feb 2019 22:35:00 -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 6/6] sched: Annotate perf_domain pointer with __rcu Date: Sat, 23 Feb 2019 01:34:34 -0500 Message-Id: <20190223063434.6793-7-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 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) Reviewed-by: Paul E. McKenney --- 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 ca6a79f57e7a..c8e6514433a9 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;