Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp704481ybl; Wed, 29 Jan 2020 08:15:10 -0800 (PST) X-Google-Smtp-Source: APXvYqx6YBtbfF+gQN2SRBMsrOcvJXK/bDhn2pnhLy9nnfUsX8rnhNrZJ4N6Fu/bm0zkZ/AVk9XJ X-Received: by 2002:a05:6830:2099:: with SMTP id y25mr20090552otq.87.1580314510641; Wed, 29 Jan 2020 08:15:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580314510; cv=none; d=google.com; s=arc-20160816; b=jRxsoeNTg1Bs8LDyMz/9X3Ni204Gfjr9tYQsoU5SqToQ7oPVFZGP9EkjanAcpQHc1m hbNLTvaIKaU9c6E05kD1hVdGCdSm5wlVsX3/+87/4TT27eniLBK6P9XEtnsPMFS9T1Ts 3KnE1YHVvFRR7ZgmdJOXaDyD/aOBI5tpxwa206r/8BWjkc5x30/puOXtBt93XyOPXZ69 u0arFAGV+XOvb312XQ+N9iA9pC1IEL4/ZDP3N5DNYCleCgqJLjOfwuW5Fwjh+XYsJ338 N2yB90UWUBDpr/f6LdsZGsJ5co4K522QD/Ia3wp++2N/48PCNyYaXE4j5nYXHe6lQb8G 0NBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+oq96d085fk9R1zembWjfCyukhjjIatlVof2J+sNPxs=; b=hya9o/pqDig5G2nLL0wTL6MMllSVRgD9PJcL0novZCzGKfXG/2SMTlruQ/F6Pchr3w TEMnxutvQ+QIx8bsAY7LxtDEjq0kE/f9TUu1ItfmPJjEryn/NS3ypSav5oCmF/gMm/Dk xT0WF85/BTT4cNQyHdzwfSRu1X01Ms6xlvu/+/6h2BQDvEDPcoFmNAZpUz+BYcuSSmOJ vDrVHr4IVAvZkBLRhAuKMBq8aZgo4VP2tumM+ayPkCpFbovHYKOtSzi63Oq5mHTWNjp1 ZVBsdCyMenZKqFUz/d8Ry3dBZBJKAxDBRdfUolXMeIyWcHM9sA6W0jJrknxgF1SNRN3g BWVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Eamuglrt; 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=fail (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 x12si1310048oto.194.2020.01.29.08.14.56; Wed, 29 Jan 2020 08:15:10 -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=fail header.i=@gmail.com header.s=20161025 header.b=Eamuglrt; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbgA2QJM (ORCPT + 99 others); Wed, 29 Jan 2020 11:09:12 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46364 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgA2QJM (ORCPT ); Wed, 29 Jan 2020 11:09:12 -0500 Received: by mail-pg1-f195.google.com with SMTP id z124so9037976pgb.13 for ; Wed, 29 Jan 2020 08:09:11 -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:mime-version :content-transfer-encoding; bh=+oq96d085fk9R1zembWjfCyukhjjIatlVof2J+sNPxs=; b=EamuglrtmZ9uGundx/IPRJmVpL0Y/3ThnGKOVz4Zqb8m1MOH+bYP3fPoP5u8oz49Pn 1Ij0uVWlWzH+x4BHRgxbd/WvXmQvpf1139nKPgvcQwhptH7/kdEQp58OBYTmsNidNqu+ t2BBYY5mNpfr1yt+vHtvAupk/RTbYduLBjxPdP3PIsc4rgg5R1XSPm2TAPcEGkAOASzE kY1PCIFULGkg/YJjrCq9QmJB8D/tSTQv/nAfwwkcDJjKNBiSDRAPmySG9yxlrYhEs4qd uM1e2ZNWjtHQ2PpOvWQBMcJKxfTO350EfYmBRbw1WpRyyTa+cta9B1bu6pubqqsmNGK6 5oVg== 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:mime-version :content-transfer-encoding; bh=+oq96d085fk9R1zembWjfCyukhjjIatlVof2J+sNPxs=; b=PWF1q0Oq4VaeWQSxnS+WykWRwRJjn1JT2tHR6ndhjBK0DoWkWibRCoMl6iFO1esgBZ C52N7kUu55dERpSyVRFAUacOmfeQoRFO2PcEWZAU1s7bOqQQ79MLI1iYsccPIwRn541E IJxUQDYcsIrg9D4SI3X03wl526M6kokrWpDfEDibNWMSoPN8KwMPP7MMYBPvTI/9UL71 +4nKWz1UFtLaLSG5ZWx7r6hzupMTwdeNepxKk/jw2X+sMcRUyKzzWFgiJNuVvSK32hX0 onywIj7ASKaJ128/NFw+xbH/C+GlwSTLWWOHxM54PCuCwB1JjS9TKyqUNQTqrMe9gqdV sxKg== X-Gm-Message-State: APjAAAUdBth0FCu6d99NqpKzfH6TRNF4i17ywTBA71gAvFINbp+Oq1jE zJaUIIY2g6uXFUBy7zPCiuo= X-Received: by 2002:a65:5809:: with SMTP id g9mr31259946pgr.146.1580314151330; Wed, 29 Jan 2020 08:09:11 -0800 (PST) Received: from localhost.localdomain ([146.196.37.139]) by smtp.googlemail.com with ESMTPSA id 73sm3258801pgc.13.2020.01.29.08.09.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 08:09:10 -0800 (PST) From: Amol Grover To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Joel Fernandes , Madhuparna Bhowmik , "Paul E . McKenney" , Amol Grover Subject: [PATCH 1/2] events: callchain: Annotate RCU pointer with __rcu Date: Wed, 29 Jan 2020 21:38:12 +0530 Message-Id: <20200129160813.14263-1-frextrite@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes following instances of sparse error error: incompatible types in comparison expression (different address spaces) kernel/events/callchain.c:66:9: error: incompatible types in comparison kernel/events/callchain.c:96:9: error: incompatible types in comparison kernel/events/callchain.c:161:19: error: incompatible types in comparison This introduces the following warning kernel/events/callchain.c:65:17: warning: incorrect type in assignment Signed-off-by: Amol Grover --- kernel/events/callchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/callchain.c b/kernel/events/callchain.c index c2b41a263166..f91e1f41d25d 100644 --- a/kernel/events/callchain.c +++ b/kernel/events/callchain.c @@ -32,7 +32,7 @@ static inline size_t perf_callchain_entry__sizeof(void) static DEFINE_PER_CPU(int, callchain_recursion[PERF_NR_CONTEXTS]); static atomic_t nr_callchain_events; static DEFINE_MUTEX(callchain_mutex); -static struct callchain_cpus_entries *callchain_cpus_entries; +static struct callchain_cpus_entries __rcu *callchain_cpus_entries; __weak void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, -- 2.24.1