Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3323399rdb; Thu, 16 Nov 2023 06:41:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0F8W7A3hm8AfzU3O9eDj7LXOalypujPxJUu1XDhTtYtzwymGsEQO2MBMMAIeSdskFhB2M X-Received: by 2002:a17:902:bd41:b0:1cc:1efb:1bab with SMTP id b1-20020a170902bd4100b001cc1efb1babmr8652544plx.38.1700145660367; Thu, 16 Nov 2023 06:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700145660; cv=none; d=google.com; s=arc-20160816; b=Kmn3BkUXX9eQEfNWZkKGKr/3miKkn20ntYmLf6w4Us6F4NgFH1alatG6ulxWxWrWoY ZvjE3ftAOBvQQLE+jKgtApjtoHmiLdhTRo8LbmSiYKer1r9VTVFDWZ3j0jFGd4ufcJcR 1NbSs2Tce/X1gk3OO15Ytd0ZXX0JR7nhM9Z1VKxo/2efZP881nmtMT8shB7rOIcHtcJ2 z0GgZI1yAupsS4+02BlxmrgD4wGsc9fJxo5Jx6ONbnbqV9kpzh1PwIVhJbGmsqYOQRoJ pws0CKGhqfqJPSEBBKZ6abHS8PFWUnjSekVPlgWH36Z6Z3kPXADJA3JHbtxKyCnhlK3W fbXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L9kXXXn3aJGAPD5UxD244hDDhKrswiOK7ITBCUVRwbk=; fh=OaTou1GWOu7odAPBnxQ4WBuKBuOk0M+kiuwRsfNV1Tk=; b=SQAfGE5VtFeO1+4fibgK6tU1j6qLGvQRernlFAxH7pPq6c6fUHVsDKp8T4IVo8i/aQ NExJ3fgnUCT2ynbm9ewS8O0hEQulH1iEfOdaTDze5jmVUIz1jyYThrY+GtcdZeqevsmQ H4f7KJcMCa9M46MEniQV4k52hA4+CC17Ialts6q8cN9G30bjDx6Nc31Vo/ds63ovAWJx GSiBtdIMc5E7Lo5A3d5RNNBR8kfSew9Uk+tTmIEyD+IcWa5KCrG7M48a/vo5e61/M4SS RTIFkJUQEr8f+1n3L66VE2tpyJqbhx2ex3Oo+ilFXFEuK2QC+TrZVX/gsuSVjM5LqcON sGdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ae0itXso; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d2-20020a170902cec200b001bb3bcd05bbsi12880708plg.471.2023.11.16.06.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:41:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ae0itXso; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2C49380278DE; Thu, 16 Nov 2023 06:40:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbjKPOkt (ORCPT + 99 others); Thu, 16 Nov 2023 09:40:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233364AbjKPOkr (ORCPT ); Thu, 16 Nov 2023 09:40:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A15C4 for ; Thu, 16 Nov 2023 06:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=L9kXXXn3aJGAPD5UxD244hDDhKrswiOK7ITBCUVRwbk=; b=ae0itXsopz0McaVrIPsZ4DFdVi wixazVLB9i+2Mz4OIzjEvlKdf+qfb0izhdDt4kZWDiuFPPVbdFdF2qvraZLrbw2GqfAmVaROdyhkM jT3B4x2KvnAl9nowHDr+LhhfFQhlDDRYvX1Bm+BYgws+Pg02X6HxjX4GsR+iNbLe1k78bcDvHGtdF n94d3kH44O1RVBQz5OqmoWUKpInl1igExtu3h6DONz0fARyU0U+8v3LZ8yEASRgCL1bfj/NP86hLu D4iTr3WNOjOJDyDKqFx5Ezfu9yDR1uK+shyKbHF9NF1XUL1JBYmI/cR/9IILujVqWF8zl8Ehvczso B0x1DBwA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r3dXm-003Y68-Q3; Thu, 16 Nov 2023 14:40:34 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 774D130017D; Thu, 16 Nov 2023 15:40:34 +0100 (CET) Date: Thu, 16 Nov 2023 15:40:34 +0100 From: Peter Zijlstra To: kan.liang@linux.intel.com Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, artem.bityutskiy@linux.intel.com, rui.zhang@intel.com Subject: Re: [RESEND PATCH 2/4] x86/smp: Export symbol cpu_clustergroup_mask Message-ID: <20231116144034.GG8262@noisy.programming.kicks-ass.net> References: <20231116142245.1233485-1-kan.liang@linux.intel.com> <20231116142245.1233485-2-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116142245.1233485-2-kan.liang@linux.intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:40:55 -0800 (PST) On Thu, Nov 16, 2023 at 06:22:43AM -0800, kan.liang@linux.intel.com wrote: > From: Kan Liang > > Intel cstate PMU driver will invoke the topology_cluster_cpumask() to > retrieve the CPU mask of a cluster. A modpost error is triggered since > the symbol cpu_clustergroup_mask is not exported. > > Signed-off-by: Kan Liang > --- > arch/x86/kernel/smpboot.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c > index 48e040618731..376387ca6be5 100644 > --- a/arch/x86/kernel/smpboot.c > +++ b/arch/x86/kernel/smpboot.c > @@ -747,6 +747,7 @@ const struct cpumask *cpu_clustergroup_mask(int cpu) > { > return cpu_l2c_shared_mask(cpu); > } > +EXPORT_SYMBOL(cpu_clustergroup_mask); I made that _GPL. Queued the lot.