Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1221097lqt; Fri, 7 Jun 2024 11:18:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbajKkwCwuM7VH5VM3s1+TZxvOX9CfNPUA+E47vqhcJjtjN0x6hKnOXM4ZN1DYY1k/90+eBw59/Ezj5u1v6ZueIo1SYFlu91NEEf/+ig== X-Google-Smtp-Source: AGHT+IESecCZ49dBpjVgDhyeGaUCgKhZ7O3aJ8kFuCKsO2A7+RYaY9nIfglxRAif1TWBCU79TkD1 X-Received: by 2002:a05:6a20:970b:b0:1b2:2ed2:b80a with SMTP id adf61e73a8af0-1b2f9df7863mr2763443637.61.1717784312063; Fri, 07 Jun 2024 11:18:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717784312; cv=pass; d=google.com; s=arc-20160816; b=QMwqXhTh40q1R/PlaSBARdA5zWE5mEIbpcOxbFil85uW0vMl1laSpSEOZC3/wgtlij UQEJLeXNyjxeIGQaNuGE2+UQF5NDJWxbX4GgSgXmRvEHhU7XZyXN1Okrwh80gggOUKvT LwlyYLyaGKYB/jNQ911LozN+CK/XnHP99WMpfEbDdCJK0jYZUG1J7WlmaCv/7oUA7MAh 1APjZKx6dS97B5O9RKO7GAd7TXETe2PW/5OViQlPqcsPWh3Cl8x60V1sYg+s6+vM63WD iR/wDjMJM1j20oLb/M+sXQSL+dld5fn6XL8LFt8+afE224Db6T8N9LPcq1cXUnvYTePl RDDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ki62ROu4ZJlTvDhZ3YNoMM9LkVRCxfxHNw+RD9Gzvkc=; fh=/EtDQv146FOBhABFAIFGzFE/k5+QtF6e7AQlrJPPFag=; b=gYmimipNdT6ECPmN7bFaZUCbg4H2TgoH1bPymx+yxEsOzgwv0PmAUt1VVwv8sVhCwl czceFMYxkpLdriOLEBVSGD16BVLTn9Dmxvbp67rNFl4fuRKsNgxD3D0Y6gtj1YS3ZzFz FF1l/Az8872Gr/71KPQu1C5YG/6YcNMjvKzTdus5FKj0FB2H8i3Kowwq6iJnBzDX/7TF yV7d0CGhr5elUCFJYw6iXUSkBvIFUuHkTaRP58HxK4eXgSxYWoDnFklkcAcufeoC841B cQb5n+n7u3//5uTjgG+h4nj7x09YqSlju5EiWY7Fm1kltlKxLk8T2pWDTf+MciqlQ2IU WIIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K8wwPA6p; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de275fe26dsi142840a12.522.2024.06.07.11.18.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=K8wwPA6p; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-206594-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 32F76286100 for ; Fri, 7 Jun 2024 18:18:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 971E513D618; Fri, 7 Jun 2024 18:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K8wwPA6p" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B01C4D9F6; Fri, 7 Jun 2024 18:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717784300; cv=none; b=LfWdHVYA4OlZfjgofZMSXDbh+fETCsos4dCPhokw1HnxvWeh+6BgxHPb4kAS8qRVRmH2qzNsPqvEjsAptZ3SQA8FY186RaVMBTG/WljLieo420p3SpUiLrTe7UtDRMgU7KSzHh+aNdkJuiW1cWW3VDFuhY788ZRArynry2Q8vfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717784300; c=relaxed/simple; bh=5JpkYyQUWLN+xyr/JvA/2oGR+WmnEnSD2h3usXzErDQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mEPSdWmOMCzw7qxp3j4tVpj6lGNX7kCC1ksvUE7dvNN415v9z+/zsDrbrBMN7JIiwXSu6OrLPPNM31o0nrHacL3kVEwU8Z+Q5QE3rXyksAFIXZWCiLpGcbZgGtN1lCEFECWk+xA5HvXlXc5wqc4lCYGMT0K+QdRy8MYPU20qAgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=K8wwPA6p; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-57c681dd692so324017a12.3; Fri, 07 Jun 2024 11:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717784297; x=1718389097; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ki62ROu4ZJlTvDhZ3YNoMM9LkVRCxfxHNw+RD9Gzvkc=; b=K8wwPA6pi4ptuseodtUPvRNoKImjfwgk91AmVCZo1+ftC71ZSIB7iYggg/iaIotuTs uLvQ1qRizCtRC0ZVWQoZDeV6u9XKdVECiQHxNMIQOTwMMyUVzqLSpXHM8aeYRps9ariW ua0k6YJTvIKqhZte/X/a9Vp4wE8rwbRCY1pddy5jl8rMtgkqhbuvePiWJ1Qd43aA7QpY g4G6V8vwUUZAXMrroIxLxvIv1SSNDaShorcP5xlMA8ZJiBdF3tYR0BUaklTDduEMuece +tdv7dEnQwHOxfXT7d/E3uR5tbPiLMfBwmZ4sgAbkXsLxtGLZhivd3GpcQCt1LHEVbs9 ZstA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717784297; x=1718389097; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ki62ROu4ZJlTvDhZ3YNoMM9LkVRCxfxHNw+RD9Gzvkc=; b=WcW8Tc1kV7h35SZAA1vQFnyvb/nPe/kzVerQxlOmQ5VluJqiIfxupbAAOjYA5J3awv DHm7t8s/lY/OBTwV4O9f23JIRg591qS89I+z3rqtG83y5i2nMS5uYp67Mh16aHXp5T/G Igd4uWUnDEUJERd3pOyNu6lKFUIZMaZieW26TW6nbX9CLB4eiEisKFRjZCqnlM/lQfMv wS3S/sqgJKBBq/KNQ6a+jft0cJLSb7HhgMi6VHWhCYB9yO+J/W0ERC4hbetEGeZW49CC YolzhE5IbvipICwedyX40hRlDjdeqPhmq5Kja9Kr8k2vd6sWvcP+wSRSLhcqbIIFc8gP K5Sg== X-Forwarded-Encrypted: i=1; AJvYcCWZcLV2zeBNEp2OadZfeQL30nASjCDeulyPUgGRxfH5qI53nG8EnisO0cInpivc+dDUB6XLav2m89TI6X8K6KLW4p24JsgbGGb0fJ1JALhSYm63HMXKKtB8yNbT3OoYQc0Cv/qBdAx+pgETw5iZEmpztQnpnRe3rRlBZw== X-Gm-Message-State: AOJu0Yyu+mbkv9YaFDOYx5XNNQRV+2LQWpXqVjk5pMA1jyvLktgo9oWg HIg8Q4IkmssOwIIvWv0Tn5P3oGaoeNuBYlm7DltJbBWaIc29QHCOmFLwOAnkNFU8Nw0Qy5xnhEv RNy7/OAo+6gXEPGKoliLDf0KeuQY= X-Received: by 2002:a50:8e49:0:b0:57c:4875:10a9 with SMTP id 4fb4d7f45d1cf-57c50935134mr1982735a12.24.1717784297289; Fri, 07 Jun 2024 11:18:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240606151017.41623-1-fgriffo@amazon.co.uk> <20240606151017.41623-2-fgriffo@amazon.co.uk> <8936c102-725d-4496-b014-cc3edfccf4dd@redhat.com> In-Reply-To: From: Frederic Griffoul Date: Fri, 7 Jun 2024 19:18:06 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] cgroup/cpuset: export cpuset_cpus_allowed() To: Tejun Heo Cc: Waiman Long , Fred Griffoul , kernel test robot , Alex Williamson , Zefan Li , Johannes Weiner , Jason Gunthorpe , Yi Liu , Kevin Tian , Eric Auger , Stefan Hajnoczi , Christian Brauner , Ankit Agrawal , Reinette Chatre , Ye Bin , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks. Unfortunately exporting cpuset_cpus_allowed() is not enough. When CONFIG_CPUSETS is _not_ defined, the function is inline to return task_cpu_possible_mask(). On arm64 the latter checks the static key arm64_mismatched_32bit_el0, and thus this symbol must be exported too. I wonder whether it would be better to avoid inlining cpuset_cpus_allowed() in this case. Br, Fred On Fri, Jun 7, 2024 at 5:29=E2=80=AFPM Tejun Heo wrote: > > On Thu, Jun 06, 2024 at 11:45:37AM -0400, Waiman Long wrote: > > > > On 6/6/24 11:10, Fred Griffoul wrote: > > > A subsequent patch calls cpuset_cpus_allowed() in the vfio driver pci > > > code. Export the symbol to be able to build the vfio driver as a kern= el > > > module. > > > > > > Signed-off-by: Fred Griffoul > > > Reported-by: kernel test robot > > > Closes: https://lore.kernel.org/oe-kbuild-all/202406060731.L3NSR1Hy-l= kp@intel.com/ > > > --- > > > kernel/cgroup/cpuset.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > > > index 4237c8748715..9fd56222aa4b 100644 > > > --- a/kernel/cgroup/cpuset.c > > > +++ b/kernel/cgroup/cpuset.c > > > @@ -4764,6 +4764,7 @@ void cpuset_cpus_allowed(struct task_struct *ts= k, struct cpumask *pmask) > > > rcu_read_unlock(); > > > spin_unlock_irqrestore(&callback_lock, flags); > > > } > > > +EXPORT_SYMBOL_GPL(cpuset_cpus_allowed); > > > /** > > > * cpuset_cpus_allowed_fallback - final fallback before complete ca= tastrophe. > > > > LGTM > > > > Acked-by: Waiman Long > > Acked-by: Tejun Heo > > If more convenient, please feel free to route the patch with the rest of = the > series. If you want it applied to the cgroup tree, please let me know. > > Thanks. > > -- > tejun