Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7103105rdb; Wed, 3 Jan 2024 04:59:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9fPPT/PX/xokaFM9ya4V1BP+Kfodbru3LlzPsqo+qW3ygA9C1SXnqXKsWKOJksLcw5qPR X-Received: by 2002:a50:d51d:0:b0:554:2ade:6bbc with SMTP id u29-20020a50d51d000000b005542ade6bbcmr11632313edi.31.1704286777899; Wed, 03 Jan 2024 04:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704286777; cv=none; d=google.com; s=arc-20160816; b=xw+71IXoASkjxJwtaGWdzyCdNc4JgXsuYv0xUB3y80MiVkMaIw8475u3xwqwshLudw vXj+Ruq91SOibFbkTmZJHPfKfBEAULfvyAdf2Ys/XldIbGSbf8kD1m1DE8LgOJUY97G0 Sm/aa5ITJj2T7qT8xNM5ptOSv8MgbDMg7eu9MKdhjl2ZVonetF1ufR6PrPipc2Z2TZbb XNnO1unMEz9nq6M5NK6exfjuwUCD4G2GYIRbpgZd8kK82PBcl0Z05aSq5ieYcIwo3njQ t22337JeDkFaKjDfOVwmi+rAc2r+4Gi2fOrKGTcDUxINMEUplk7VDk9h/Uk6b4oJCte3 0S1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/eG0rATUNbKFBvWpKA+qnnjYYPHC3Xs5KFpeSPkIWAc=; fh=q2O5b0D4J2cuSJyaPE284WzuH6G1SvLUKX1oUTIo+oQ=; b=jcLcBFxlb4Rn7ZlyOkFXQ7E3QReORaAfChBGmF8nv9YvEnCfc7uqgd7unPkoPVHCyN KOMeVRIfoMKV9ZJs8DlpIEo4utQJwvjbBEP0fL1SOUEr4O8Y20gbsRwpfZsGkcchfxGy ap9f8YY6Oh8PdVQiWYFjG40RTDAwPw4M4o5P2USp6o2df74bAp8wQ1JTnzsO6/HEJViJ Z4GOiVBRNCqWQj/v9weyU9/TNG4fDdL7lSWMkMpVfWFnPYtzmUQY/BunZaL3d98K8wZg vogA1P5JHK0ta1Nn/jXkRUZ3YYhdsWR/58DT7xgSOEaGNwYY8ZJjLNpU/J6zCEUzZVfl Z/bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bx19-20020a0564020b5300b005569cab2645si1410066edb.5.2024.01.03.04.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 04:59:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15543-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A1F491F243A5 for ; Wed, 3 Jan 2024 12:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC9B519BC3; Wed, 3 Jan 2024 12:57:00 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6ADDA199A9 for ; Wed, 3 Jan 2024 12:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC06214BF; Wed, 3 Jan 2024 04:57:43 -0800 (PST) Received: from e126645.nice.arm.com (e126645.nice.arm.com [10.34.100.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1B88B3F64C; Wed, 3 Jan 2024 04:56:55 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Pierre Gondois , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider Subject: [PATCH 1/2] sched/topology: Annotate RCU pointers properly Date: Wed, 3 Jan 2024 13:56:47 +0100 Message-Id: <20240103125648.194516-2-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240103125648.194516-1-pierre.gondois@arm.com> References: <20240103125648.194516-1-pierre.gondois@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cleanup RCU-related spare errors by annotating RCU pointers. sched_domains_numa_distance: error: incompatible types in comparison expression (different address spaces): int [noderef] __rcu * int * sched_domains_numa_masks: error: incompatible types in comparison expression (different address spaces): struct cpumask **[noderef] __rcu * struct cpumask *** Signed-off-by: Pierre Gondois --- kernel/sched/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index 10d1391e7416..0342a4f41f09 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1542,8 +1542,8 @@ static int sched_domains_numa_levels; static int sched_domains_curr_level; int sched_max_numa_distance; -static int *sched_domains_numa_distance; -static struct cpumask ***sched_domains_numa_masks; +static int __rcu *sched_domains_numa_distance; +static struct cpumask ** __rcu *sched_domains_numa_masks; #endif /* -- 2.25.1