Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1246511lqt; Fri, 7 Jun 2024 12:10:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7zao3hhaAaI5N588UY4TV0eUWUM8d0tWkhdFpk8ksRpc9Lq4SLZ65JzI8Kj4VL5/1iizYzKhF6Dj9yOoF4mb0ueO+xJRaPIXuJPwTfw== X-Google-Smtp-Source: AGHT+IEDipgN/x5kgd30g0bUwcJ2Y8PddI/aAwm/z68peVM90XCv3sbDkH39djas0BpFag6xayfE X-Received: by 2002:a05:6e02:1fc9:b0:36b:3af2:2349 with SMTP id e9e14a558f8ab-37580349e10mr37467685ab.15.1717787459353; Fri, 07 Jun 2024 12:10:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717787459; cv=pass; d=google.com; s=arc-20160816; b=UjK9TD3d4LEwxlqfxExBjMw0I08RvZXWl0tS7J/h68eTMG8Q+0TqnLK+OYZOCnHslL jbzcPE1jN/5oIKfjceKfYjrJKrBIfu32lkRfgARnst3K2Yjonvw9NFdABRcgudlUQwBx AHsY3LenVVQzV7fuCD/xqojU4TASdvKVnAlLOBE0jib1iNnoOl3FK+G7m/lo1Rx3n+q8 qy1pEVl9MyPStMeZM4I1FIHomTx6cY+2/JHpXge5K2oMKVTzGrahrSYUrtClJPEZ6Vb4 y4HflCfX+IUkmNemEO9SiNuC2SeEwaoiv9ijy7uglQbkn9seIp49NJ0Cj/Wz9QbzVoJ5 rnHA== 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=8ZBxe52q1PnRY4oylN1pOYY5Do7Ms0IbtGTwXgGpYqI=; fh=cHtkYZ4QM3mOREn/5kC9iqm0SoTRexuX2PDVdwS35TA=; b=o1V5znuWDimEoet0x/T+9VJr8mQtVX3bjf9NAvy+nmmNqyfuvgzjRDwjmrG07wy1NU dYoc7mhJ6RAACcEm9MRxojOoCZnNz77lpYHvgEO/3yOKEaPjKk/PlOrLhYFok6loby9j 9lfRk0kQIXgU50iUFArjgEXfshCCIZrwswVt0xLFgPL4suwRExbG49omLbT4amftzgP+ aQaMnhJNFGF8I8OZVZ4wL3jx4hreyk4TxmR7VLikAnSyM/sKOrg7iUaNY3R8duG9Xfep S46PELCnTl0k5+7YrzXXmIOEqVwCFwTHRJxHVa2jH3P8MkquYLLwY6bU7GdqMdKKROWY rSjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=NJQjNmWN; 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-206647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206647-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 sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073c92bsi3521314a12.91.2024.06.07.12.10.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 12:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=NJQjNmWN; 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-206647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206647-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E7D13B217B8 for ; Fri, 7 Jun 2024 19:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44FA0149DE1; Fri, 7 Jun 2024 19:10:38 +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="NJQjNmWN" Received: from smtp-fw-80006.amazon.com (smtp-fw-80006.amazon.com [99.78.197.217]) (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 E3445145341; Fri, 7 Jun 2024 19:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=99.78.197.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717787437; cv=none; b=FYKI+c3+++EFXpt1nntZuM/5L672MP+kmLWp9FD213uvsVlni4uAj63Xb8+wdWwzlNXKTei5vqzMyT20Zz/4z5zEwY7eLWhNoOLFG4vQVPU9U5rMeepWuk9b1iasOlRjt89HKJZI1EW0UwJrYIdftnwPMRnWdq/CZuhir8P50xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717787437; c=relaxed/simple; bh=4gRlKUjq8k6c1Z0/5HTOi/bl9NbiMEPawfQngjxA2nk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dw1AG2k5bbMG+f/jA2E8z4oC2vZareVW9OdEYdksNB8UCdzT0AvFKFlHiV/U8XM4lmm4OzWSXUSUbmnTKTa0OnTkMVYT6USrnQgtfzj/ySUXQXKvDh9bIohIOMNScIeRrVagDd77DzvxdqhivmzS5TC7fDDMMq27H2Aw/jbN4V0= 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=NJQjNmWN; arc=none smtp.client-ip=99.78.197.217 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=1717787436; x=1749323436; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8ZBxe52q1PnRY4oylN1pOYY5Do7Ms0IbtGTwXgGpYqI=; b=NJQjNmWNPraNXcV4B1SqH06Nnd1NRtbTDvJEsodu5zDSzbPTKayLIKSh sayzcdDnk73i0dFmUoipZ33Atxgi9jAqe4svVNEP844qvzawpg0XYQ+SH 3OHGmiMRhdOU7s88tDPvIigGVI2crYckK7OTq/1EP5kkI5qJi+ugalYYY k=; X-IronPort-AV: E=Sophos;i="6.08,221,1712620800"; d="scan'208";a="300741761" 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-80006.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2024 19:10:32 +0000 Received: from EX19MTAEUB002.ant.amazon.com [10.0.43.254:7355] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.34.168:2525] with esmtp (Farcaster) id 35028c6b-1325-40e2-8b96-4afae449ecd2; Fri, 7 Jun 2024 19:10:30 +0000 (UTC) X-Farcaster-Flow-ID: 35028c6b-1325-40e2-8b96-4afae449ecd2 Received: from EX19D007EUB003.ant.amazon.com (10.252.51.43) by EX19MTAEUB002.ant.amazon.com (10.252.51.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Fri, 7 Jun 2024 19:10:30 +0000 Received: from EX19MTAUWC001.ant.amazon.com (10.250.64.145) by EX19D007EUB003.ant.amazon.com (10.252.51.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Fri, 7 Jun 2024 19:10:29 +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.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34 via Frontend Transport; Fri, 7 Jun 2024 19:10:25 +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 v4 1/2] cgroup/cpuset: export cpuset_cpus_allowed() Date: Fri, 7 Jun 2024 19:09:48 +0000 Message-ID: <20240607190955.15376-2-fgriffo@amazon.co.uk> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240607190955.15376-1-fgriffo@amazon.co.uk> References: <20240607190955.15376-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 and checks the arm64_mismatched_32bit_el0 static key. We thus need to export this symbol 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/ Signed-off-by: Fred Griffoul --- arch/arm64/kernel/cpufeature.c | 1 + kernel/cgroup/cpuset.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 56583677c1f2..007fddb07039 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. 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