Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1722087ybl; Sat, 1 Feb 2020 05:00:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyycsi/jmiFL7GGvDSicGkAvT35RCgXgqQf6S9n89nwKQxiSfi/5uTLnrJYuH1sp+Il0QL/ X-Received: by 2002:a9d:7c9a:: with SMTP id q26mr11761867otn.206.1580562007245; Sat, 01 Feb 2020 05:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580562007; cv=none; d=google.com; s=arc-20160816; b=QjaIl3Uwj5B9LiTnMTPbSlx/721d1xb9YPmMiHOCAbeGWOt7X5CNeu+tvdq5khw1os 6kyKkr7YZNEspXrUXJ1eK+dPHdZ+Tt2n8QJvb/f7e7CeMGPPIc34JFOHyUR6fKAwvUbf 99DyPOht55ryv9CGlqvp/ZhgtrwJo+oXzRW4bnGHIKWvllcuNxT1L58lnenSyZNMVxWn /LgVszv/vzFuvyZoNKuKL+kqZHsFNdZaGgsZF5/eWfdqXUrtnDH3qecmwwSqdVtGOZ93 c2ZJjxOEaxMT7tkpzhD3q/93kBOEmsseZ++IJTBmRvigkBiX3Epq8yyxyh+WaJf+jaSd 0Vyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Sg2eOI3lpxVLDcDQYQkxI8yUvrkJbYXCIF4uNleTtLs=; b=wTlR5RI729hSFhaDuVtO/VLITlp4q5hXphETRxCiTxOxYdOCvLXbjxHeOpogueYJPC zTxvOcz/Jfy2I9xHgFySly56yrv2Lz0HFjXk5MxYEqPNOtM6akKQ2Z0TECKmLZvLJ+q1 3tMWpmS8WZjmQrnAcJrzRmDmlamr/7nZ5IXbQfWiDdmcDBvm1U1sI2jAtR9evRba417W TlOgKjw2dRIGUIZt3lZ834qG9vBK2SbYzKHp7napTlO1YLLMuyhNziXTzgkjGIChMQoc l2fp9NtvgVYBke7mAB46FE6NnZ7C4vl//LGAzqxqBnA/rQLm6kf1xOkfHAAce2mKbZzy dnxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzPZwDZT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 106si5826407oti.106.2020.02.01.04.59.51; Sat, 01 Feb 2020 05:00:07 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VzPZwDZT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbgBAM6n (ORCPT + 99 others); Sat, 1 Feb 2020 07:58:43 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42057 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbgBAM6n (ORCPT ); Sat, 1 Feb 2020 07:58:43 -0500 Received: by mail-pg1-f194.google.com with SMTP id s64so5097778pgb.9; Sat, 01 Feb 2020 04:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Sg2eOI3lpxVLDcDQYQkxI8yUvrkJbYXCIF4uNleTtLs=; b=VzPZwDZTiS0OoC9iJdqoQZ1rJQirI983lgb8kIAJifeN7iI9AFpWSkW3lfGLH/Wqny 9SPjmGclSfOzm0g88K0e38IsOKwyGaexWV6Er/Ua0KH43NACA+d4KQQkN7ig5POv38+M YturwSNZ1zWY+IpsyBi5TWxl3a9tp9tJEQH4KuG5IBwYJK2KryuioiFI/o+DDsViZP/I JaucO0AUmY/47JkO3fIw7Ch4v5pPPLE+6CWVMKIYfugruQT8AR+1XkDXiL6j8HTGplAW cP9PMZvYhP8K+ibnghXfauWD7g1oCGNOR17tbzDyTbaKXAVHH+LK0580wn3RirUXrLsb QYdA== 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; bh=Sg2eOI3lpxVLDcDQYQkxI8yUvrkJbYXCIF4uNleTtLs=; b=eztKJX1avs0jMKGvB+nAJL/k7Az8457KlPZyL4reoD5mdO+T7xChwXTX8vTqeiyowc ox1/ZeEFVzuXSubyZDsRxXEIpmCLH+3oAIuK7nbFCnN6e3eyItXWUXOH5vmlqVhkNAug YOXoG9ZRpqZMXPNjeYy0aZH8vNrViy/U8MS973CaNzUuD7eUwx2vAONTk6NF05JFtohi i3XUjVyAD4OgedjYSRzpirp/3MnH+9aAEh69QAm1LcwhPOtYM08Wy4mYDHA9iPlC86z/ PzZJklus41Q5Dr8dLUvXfmcjzHd77p/Qp7Im2a2w25IjgEJypyRQwWU7WDVFIC9lk3IG 2s1Q== X-Gm-Message-State: APjAAAWlM3d7V5Lpo4oVi7HWrBijrcHmYA+wGYEnRSke/HgefkLWuicZ 9omgV6YB/q+UOqcSwbPjbw== X-Received: by 2002:a63:1a08:: with SMTP id a8mr15444283pga.425.1580561921051; Sat, 01 Feb 2020 04:58:41 -0800 (PST) Received: from madhuparna-HP-Notebook.nitk.ac.in ([2402:3a80:cd2:8ab5:f87d:af67:e1a2:1634]) by smtp.gmail.com with ESMTPSA id g22sm13607889pgk.85.2020.02.01.04.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Feb 2020 04:58:40 -0800 (PST) From: madhuparnabhowmik10@gmail.com To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com Cc: linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, rcu@vger.kernel.org, joel@joelfernandes.org, paulmck@kernel.org, Madhuparna Bhowmik Subject: [PATCH] sched.h: Annotate curr pointer in rq with __rcu Date: Sat, 1 Feb 2020 18:28:03 +0530 Message-Id: <20200201125803.20245-1-madhuparnabhowmik10@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Madhuparna Bhowmik This patch fixes the following sparse errors in sched/core.c and sched/membarrier.c : kernel/sched/core.c:2372:27: error: incompatible types in comparison expression kernel/sched/core.c:4061:17: error: incompatible types in comparison expression kernel/sched/core.c:6067:9: error: incompatible types in comparison expression kernel/sched/membarrier.c:108:21: error: incompatible types in comparison expression kernel/sched/membarrier.c:177:21: error: incompatible types in comparison expression kernel/sched/membarrier.c:243:21: error: incompatible types in comparison expression Signed-off-by: Madhuparna Bhowmik --- 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 280a3c735935..97b1396b6008 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -896,7 +896,7 @@ struct rq { */ unsigned long nr_uninterruptible; - struct task_struct *curr; + struct task_struct __rcu *curr; struct task_struct *idle; struct task_struct *stop; unsigned long next_balance; -- 2.17.1