Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp513775lqp; Tue, 11 Jun 2024 10:45:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdUinjW3M4rF2NS8hdqQCyCQx82gWGbnmil4zev28IKa/0ZInPpRcnDcnnQP2pvNKoaFYJqMTTAguIwPj8U2clLwKbO09/lXjAC6Squw== X-Google-Smtp-Source: AGHT+IFaM8KRJYbL/963DBt+heV3QvmY7YG0zjQAX0o0d5U5dqiebE3s+tIBqQ32hZyK3k4NUzQh X-Received: by 2002:a17:906:25d3:b0:a6f:18ee:7932 with SMTP id a640c23a62f3a-a6f18ee7a35mr416532566b.20.1718127945038; Tue, 11 Jun 2024 10:45:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718127945; cv=pass; d=google.com; s=arc-20160816; b=LjHq5XWkFc7yu5EM5IZc5W+fB1clMMbTXqBARt1xaaPsBOrnap/SjCESuq2cB9JCzy ldGn/lh8GJhyCkq9x045k8RYtsFZL+75p8INNXGxscrhw5Qnrk9jGsjKM5DirQv72N5y FKUGdosni7Md245lcIWzeEiypVfGEM8i4lh2FABQ/MdbNxLYvZhFEIQMAWbqvGgwb/7m tXIVJfaeb1UDkxH3pN5pB99GJ2ProbLl9Gz7kmCGmcA2Q/gnvKKb8n1YIpKeOzIzkLdM IwDTsfZ7y+5VAp1SOS7PGTox95V9rfx6hwuUYm1C9trSbYs2DHsq4hWj1koCagEWmOw/ xyFA== ARC-Message-Signature: i=2; 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:dkim-signature; bh=GKre/lXeLq2FkbVhYcoGJbiGx0tXQ6v9fNnBOIMJeLw=; fh=cHtkYZ4QM3mOREn/5kC9iqm0SoTRexuX2PDVdwS35TA=; b=SCzToCposAXplFKAwChzUptheJitLHAGaT7IvRd4Dx4g/evSVRJnYhp7FootR4uF7B GIVXo5FNCDW7yhVWUiADj/qVbabP62OAR/Ru9z0KG35r5nmUlKvzUfimJTV8Mb5CiGSs Yyju2ZH6jkkGy5Wj0KGPB30FIb8zZ1uQY3rmfgp7TYVGFVOtwCMCt24CNz/cQ6vQHsAr qW7UTJ+eTZSddRKsIvj56WVXoGGxm3EKcB+ha+IIJth7gwcW4hz44F+OGk+7HZz8C+Em fjkVL2qgjdJqVabVozQlK6i/eZgzJKgw0mzwUu5kUT2OCf8DvnRw78vxkdk1WWWpURkT 3CTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=NORoAM53; arc=pass (i=1 spf=pass spfdomain=amazon.co.uk dkim=pass dkdomain=amazon.co.uk dmarc=pass fromdomain=amazon.co.uk); spf=pass (google.com: domain of linux-kernel+bounces-210347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6ef84b0277si400078866b.627.2024.06.11.10.45.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:45:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210347-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; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=NORoAM53; arc=pass (i=1 spf=pass spfdomain=amazon.co.uk dkim=pass dkdomain=amazon.co.uk dmarc=pass fromdomain=amazon.co.uk); spf=pass (google.com: domain of linux-kernel+bounces-210347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk 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 C090C1F2487F for ; Tue, 11 Jun 2024 17:45:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3AC759167; Tue, 11 Jun 2024 17:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.co.uk header.i=@amazon.co.uk header.b="NORoAM53" Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92E5A502A9; Tue, 11 Jun 2024 17:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.171.184.29 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718127935; cv=none; b=VgO4be7ceo+2094YU/oVtDsc0rZVSYMymKnLCrsS/5aqEcZ34eBP5mwt/YjipBeKVAi8daTaX7DyVRCSnELYuN92Pm+Bjfl6g7Wcqf0IecUqWaq8LL0wEbyiwb+fzI0xrwhK068g0FJULiX+V+65vcskrQdfyJst/+fNbDaAK44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718127935; c=relaxed/simple; bh=zTaBAcIgu8FzEpJSI1r+QourCEvxKKmgr6F8JlwIUR0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mYVspONKak8GJbEdGS5ALDu2FBZrnqwU+TalHuOoCq0HZUj/dXZGohBW5cfDkeTOthsU8b3VQvdAv0/BPJp4oKjmjYos4DduO0BoXT8/enn/94ACPcISRF2Y7xAob7WG67Nw6UfBN8OrVqYsP37AoAUQDw6GYEFL9nt6Ym7dIZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.co.uk; spf=pass smtp.mailfrom=amazon.co.uk; dkim=pass (1024-bit key) header.d=amazon.co.uk header.i=@amazon.co.uk header.b=NORoAM53; arc=none smtp.client-ip=207.171.184.29 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1718127930; x=1749663930; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GKre/lXeLq2FkbVhYcoGJbiGx0tXQ6v9fNnBOIMJeLw=; b=NORoAM53ue9g4Hl1e4uAFcXinqGhm6NEyN8BQdmDfJqu7hv0Ih0IfSEU nPmNAVO/k5qrsMAnBiUM4up3bGJoTCZdJYD23OTFokUbfBWbnh/bejIoZ 7JS1lasJoFWs6KmoksxzF+SSbcDyaARIu3CTnGLcxJf2od3IV/DsBfIpK 8=; X-IronPort-AV: E=Sophos;i="6.08,230,1712620800"; d="scan'208";a="425558126" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.25.36.214]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 17:45:22 +0000 Received: from EX19MTAEUC001.ant.amazon.com [10.0.10.100:42655] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.31.105:2525] with esmtp (Farcaster) id bb066631-9c9a-4482-b062-2f22bedf3b3d; Tue, 11 Jun 2024 17:45:21 +0000 (UTC) X-Farcaster-Flow-ID: bb066631-9c9a-4482-b062-2f22bedf3b3d Received: from EX19D007EUA001.ant.amazon.com (10.252.50.133) by EX19MTAEUC001.ant.amazon.com (10.252.51.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Tue, 11 Jun 2024 17:45:21 +0000 Received: from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by EX19D007EUA001.ant.amazon.com (10.252.50.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Tue, 11 Jun 2024 17:45:21 +0000 Received: from dev-dsk-fgriffo-1c-69b51a13.eu-west-1.amazon.com (10.13.244.152) by mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34 via Frontend Transport; Tue, 11 Jun 2024 17:45:16 +0000 From: Fred Griffoul To: CC: Fred Griffoul , kernel test robot , Catalin Marinas , Will Deacon , Alex Williamson , Waiman Long , Zefan Li , Tejun Heo , Johannes Weiner , Mark Rutland , Marc Zyngier , Oliver Upton , Mark Brown , Ard Biesheuvel , Joey Gouly , Ryan Roberts , Jeremy Linton , "Jason Gunthorpe" , Yi Liu , Kevin Tian , Eric Auger , Stefan Hajnoczi , Christian Brauner , Ankit Agrawal , Reinette Chatre , Ye Bin , , , , Subject: [PATCH v6 1/2] cgroup/cpuset: export cpuset_cpus_allowed() Date: Tue, 11 Jun 2024 17:44:24 +0000 Message-ID: <20240611174430.90787-2-fgriffo@amazon.co.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240611174430.90787-1-fgriffo@amazon.co.uk> References: <20240611174430.90787-1-fgriffo@amazon.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 kernel module. This is not enough, however: when CONFIG_CPUSETS is _not_ defined cpuset_cpus_allowed() is an inline function returning task_cpu_possible_mask(). For the arm64 architecture this function is also inline: it checks the arm64_mismatched_32bit_el0 static key and calls system_32bit_el0_cpumask(). We need to export those symbols as well. Signed-off-by: Fred Griffoul Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406060731.L3NSR1Hy-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202406070659.pYu6zNrx-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202406101154.iaDyTRwZ-lkp@intel.com/ --- arch/arm64/kernel/cpufeature.c | 2 ++ kernel/cgroup/cpuset.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 56583677c1f2..2f1de6343bee 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -127,6 +127,7 @@ static bool __read_mostly allow_mismatched_32bit_el0; * seen at least one CPU capable of 32-bit EL0. */ DEFINE_STATIC_KEY_FALSE(arm64_mismatched_32bit_el0); +EXPORT_SYMBOL_GPL(arm64_mismatched_32bit_el0); /* * Mask of CPUs supporting 32-bit EL0. @@ -1614,6 +1615,7 @@ const struct cpumask *system_32bit_el0_cpumask(void) return cpu_possible_mask; } +EXPORT_SYMBOL_GPL(system_32bit_el0_cpumask); static int __init parse_32bit_el0_param(char *str) { 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 *tsk, 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 catastrophe. -- 2.40.1