Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp337714lqp; Mon, 10 Jun 2024 05:59:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4BU/CFJX7BQojX3rjTqUpfoPHnEOuDYYeiUo8dsVI/i8RH5nfTPP8LXXFJCF0ggdbtapIdikGzTi4psXCzSE5kwMe91uEjPuLFoW1FQ== X-Google-Smtp-Source: AGHT+IGBaqlY/Yhd7sJG1BmZYSaqLU8j8LSncOGnhESCupFRwMChofFnQZA0DPYmIPgKO+iYg0hL X-Received: by 2002:a17:906:755:b0:a6f:308d:48c8 with SMTP id a640c23a62f3a-a6f308d4a67mr33625266b.69.1718024341492; Mon, 10 Jun 2024 05:59:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718024341; cv=pass; d=google.com; s=arc-20160816; b=zS0c/krS+DmD0X9Py/JGsG20xUuoO4ETeAUPjNMzqLAGaMZgKThoiDmmsQp5qDyVBU dXc3LD/WIREaweTjNt3BFIk9evDRoZQX7vCWhVecTVLlscqE4ZXTF7tYnVdodMw6nrji SxkNlNX3umVPLyaTB1HfghpuAIC++BPzeWoGq/A7617oorP9VgwEFa6XUl0XJqWxmsJx vNeuNxfeYC+dEv09hQhog7SL0bLOisg4rqtmBl+mny8huhXfnT3fwZYHVF36OQLEkLgN eVUIG9bT1jsJv6VNRtxYx6tLvomfFH5fgPftwvrKLu7dTIfl0H2SFG+WeMIlLhExtm0+ xrOw== 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=R+t5kuH61I6DmDTD2guJKH5i6i3EwO5ldYL3sCW0Zow=; fh=cHtkYZ4QM3mOREn/5kC9iqm0SoTRexuX2PDVdwS35TA=; b=wEZejO+2m4UNDNZzgPmNmlFXu/VIcZY7RVyv0LgoYb7zVTExJFTWuLRD91iiepyu0C zmoZTCMmhr1Etsrn3bz7QTJvO/LU39ZZTeJPbU8AJJ1zwofm7Zt37QXdLGx16SFbeQlj CLxA1rM12c+ho2xGO226S8Vii9rNNu4LqdbkEqM0+Ur18sBhB3MWk2k1a5wGOQ9fL1MO pf+5S0Tz41y5S4XLuSpgNshrdLobpbooNmkBkP3OxbBBWsMeVqbspec75X+t4ufFf6lH ffqN56HN8RNuEK7bx2gPCJVQxi2+lfO6j2SymDv2rq6WoA9zzg4/lmSJ0lNt+ktk0RBu aZng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=oOjI+l6J; 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-208194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208194-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-a6ef8d6f7d4si272472266b.91.2024.06.10.05.59.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:59:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208194-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=oOjI+l6J; 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-208194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208194-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 5F8701F238C9 for ; Mon, 10 Jun 2024 12:58:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CAC281AC1; Mon, 10 Jun 2024 12:57:58 +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="oOjI+l6J" Received: from smtp-fw-52003.amazon.com (smtp-fw-52003.amazon.com [52.119.213.152]) (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 5E33A80C1D; Mon, 10 Jun 2024 12:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.119.213.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024277; cv=none; b=f946q/jqJOpUG9XkAMAjMwc05mfl13S+bJ2COjmf/LzzX77kx8i2fvv3k8MW8OZj6iZA10FqBwaw4PZFJch5gBBBWWzA+i9K2Q7o8H5BG+Iq5ALbWvUqO5P4jKwnextgTqzpF5rYEw7EK6GEskW2gqVNuEgM4qjadCv5ue4YDeY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024277; c=relaxed/simple; bh=d71z35+QWzMp5JV4v5Cq6bXAf8H95u1CvuP601c3fmA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QwLn2Wrtzbk8TpUYbLWPGfk5x6y7fcvtGwVLzLd3+zn/ySEtIEhV+NzErB1YTxRayoXZEnRtlFQGZ6QvUXq1Iz/B+I2WVjdhwD5yaOQs2DG5gt1J646gtjcGGcGOHijuXjIGiN9VZak3QnYqjukBvQDNPT1sAfV7i0oxx8fR0HY= 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=oOjI+l6J; arc=none smtp.client-ip=52.119.213.152 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=1718024276; x=1749560276; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R+t5kuH61I6DmDTD2guJKH5i6i3EwO5ldYL3sCW0Zow=; b=oOjI+l6Jj/Q2iauad+oerkdrcQlVKko1L7R9CiCVnuB6FZ1zI8UeLIpp DSzhb/Mw2ZpRuR7ygo2i4rwy3lCQGQbbm00rhVxXhE7nP6Z2mIHBUq8Wa 7QhKAeK9uttjg+ryChMHxwS4/dTOf+bVPfmmkoIo7TYE4MogN0ZLj0krA I=; X-IronPort-AV: E=Sophos;i="6.08,227,1712620800"; d="scan'208";a="3967899" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.43.8.6]) by smtp-border-fw-52003.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 12:57:52 +0000 Received: from EX19MTAEUC001.ant.amazon.com [10.0.10.100:61759] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.35.119:2525] with esmtp (Farcaster) id ccd1910a-3428-451d-be34-03c6fb9f1573; Mon, 10 Jun 2024 12:57:51 +0000 (UTC) X-Farcaster-Flow-ID: ccd1910a-3428-451d-be34-03c6fb9f1573 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; Mon, 10 Jun 2024 12:57:40 +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; Mon, 10 Jun 2024 12:57:40 +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; Mon, 10 Jun 2024 12:57:36 +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 v5 1/2] cgroup/cpuset: export cpuset_cpus_allowed() Date: Mon, 10 Jun 2024 12:57:07 +0000 Message-ID: <20240610125713.86750-2-fgriffo@amazon.co.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240610125713.86750-1-fgriffo@amazon.co.uk> References: <20240610125713.86750-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