From patchwork Thu Mar 21 00:34:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10862743 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 BCA8A15AC for ; Thu, 21 Mar 2019 00:35:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6B9129E99 for ; Thu, 21 Mar 2019 00:35:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A50829EEC; Thu, 21 Mar 2019 00:35:36 +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 DAF4129ECD for ; Thu, 21 Mar 2019 00:35:35 +0000 (UTC) Received: (qmail 25687 invoked by uid 550); 21 Mar 2019 00:35:08 -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 Received: (qmail 25641 invoked from network); 21 Mar 2019 00:35:07 -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=3BCZ1lsacTsgFMuBPjIGWwMmDsstTbo8DviFJ0mb0ag=; b=c8SEnqX2KnNGVEDjz3mPiFXvsItfq9cY17AoP/PqrLOJoo+mXC/uhYUvFoBy7yilKw TK71+HYMsAiIkyIV73LQ73LS4IKvd1kRgfgdV0tzLw0EBuO3ZwXzDV0IwLHyc+5SrODd 3zGUlL1yuhuOrnAn77h6Wc7VCU6UZr4SlQ+3A= 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=3BCZ1lsacTsgFMuBPjIGWwMmDsstTbo8DviFJ0mb0ag=; b=cSicugUQnCfax7117Re1XvqDijTD07FI5UfrXyas3F1qjPrrYz3jHwo6KEJkAPgjVj 8k2ptW5ZR9ObE9T5g59OV61tMY3iSTk9o7N8G4lLTR8KnHD6elCwMJZB08TyTBLN9fZH 0Ekrs2gnDj7FUZYP4oOD6ShVIdf5Zftn0SFTlSRueafVkh3K7Fls6C5bHGg7hjxLuxIX l/p+iS72NqMJdtYDRvKzt/B8uNZhY39hOx177pbALDgsr4jpukhEyVKVuli23XqOgX2R aqLjwnhrKwwT9Adhe7Agio9HpSqX27xDQA0tUHmxAPEPD1CV4Ou6h4W7B31NG/X300aU NDaQ== X-Gm-Message-State: APjAAAVPFpr4HQ1mDJuO+GvN2jOpUzzj7x5F1AjCVpAMYWVdZW4imLLk JH7/+X9dAmaBmiUkBgN5xp5X/Q== X-Google-Smtp-Source: APXvYqyKz8eiuiukjGWMlz2K1RtXcTv8xyeBJgywnaCkw86IBcuZ7HUWbRdeFpvB2XfJCP47FOijMw== X-Received: by 2002:a0c:b05c:: with SMTP id l28mr757047qvc.95.1553128495754; Wed, 20 Mar 2019 17:34:55 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , "Paul E . McKenney" , Ingo Molnar , Josh Triplett , keescook@chromium.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, Lai Jiangshan , Luc Van Oostenryck , Mathieu Desnoyers , Morten Rasmussen , Peter Zijlstra , rcu@vger.kernel.org, Steven Rostedt Subject: [PATCH v2 4/4] sched: Annotate perf_domain pointer with __rcu Date: Wed, 20 Mar 2019 20:34:26 -0400 Message-Id: <20190321003426.160260-5-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.225.g810b269d1ac-goog In-Reply-To: <20190321003426.160260-1-joel@joelfernandes.org> References: <20190321003426.160260-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. [From an RCU perspective] Reviewed-by: Paul E. McKenney Signed-off-by: Joel Fernandes (Google) --- 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;