From patchwork Thu Nov 16 14:22:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liang, Kan" X-Patchwork-Id: 165833 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp3244246vqg; Thu, 16 Nov 2023 06:23:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8tobf6I2vCdAMszhAbiUa9wn8AnnXk94vreB8KpQUePNLtqX641s0Qjk4wT7CTqLuyKu4 X-Received: by 2002:a05:6a20:4286:b0:187:e4a6:fe with SMTP id o6-20020a056a20428600b00187e4a600femr804449pzj.58.1700144581170; Thu, 16 Nov 2023 06:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700144581; cv=none; d=google.com; s=arc-20160816; b=b4FQX0HLWvhrg70yKwr1egikjFH7d9gpkrH97xisJVxUE7eKrtY2/3c3FDb/DxPwbQ hRQLbmwAGIUpz0pMiMEpD3t9VaMtamkG9J3L35mSKygBT6B8ClXRJAogb1bbZCeOzQ5n FqlIhmNnZ3Sk1fW7vp1/l614qXZjgJfQ7MqFTj749t0M6iyFeuGXucqObybHDwWixu6X u+gyTWWXIZj7CRJv55lincz85fqig8/LEUzCcUBSDF20D7yBBfXX0DIeuXEUDr5p4dm1 MsmuyCeOTNvjEYnuQj00vTxF4flx3TIIDS9SyoxK/bigu4/XR6wZ1ogj83mAQ2n8Km50 S2Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cldbB7Oykvj152VHx84X5PVYGWwpoiVvA9Jfqm8ncG4=; fh=xH4moCvQzsN+9ugM7JX/UQN3H6rCLhcemTuT12mMY/c=; b=L3KrmiWc25XF89/HFcaQ7JUX9BEBsfEGH3XaDvRmATFUun8jsq+WH7mIuL/b4qCmt2 a9+6Vk19O3j/81GCMjXNg66ym/uSQLIHaB9Ye8WxL0T8xLgV4EakbfwOKlo4IR65OlwD MBgM8UijP5RY5UYGEP3eBEwEQouofZQ5+gH/M11arvFQD66909J3wo+RxlEHDCOUnxRx by2XTVelJ1ONc9QEXLEFvkUU4DcMCyA5rZyT8N93J6oM7t0cRoJ3OQQIjSktg6JTK9Vm lZlIGWlm+T4+2HWIQ/w147l1MdiNTiugmGaG+iWBzs1wdmIuWcg63/LtNdGz4V1CFrqI +Dtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PA68P2py; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b1-20020a056a00114100b006901387b09bsi12547075pfm.344.2023.11.16.06.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 06:23:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PA68P2py; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 925848217EDC; Thu, 16 Nov 2023 06:22:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345309AbjKPOW6 (ORCPT + 30 others); Thu, 16 Nov 2023 09:22:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345294AbjKPOW4 (ORCPT ); Thu, 16 Nov 2023 09:22:56 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69C6211F for ; Thu, 16 Nov 2023 06:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700144573; x=1731680573; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2R+BjQjLudjCIoEuDzJL5Lh1qKRQYoCXOxXB+xKHIbo=; b=PA68P2py1a2gv9Q9OcTPHQe6KtbGZk3gWaxJRHUFqk7mbCxwnhtlW3ei eaDqh8+8i28M2eRHPg1BG+wR79LOe3ecRIC7r42L5uf1MUrHCdOOc67cV llI9qKERo7kY6CZl6Wly/eYDALvhWvXHCYVTHItG9P8WYBaxvIdTd9Ddp d++NyKv/ZgbxsGtpuLDeAnMY9bvQMDSukcSYGljLDWH/B39brWyw9CMe5 RL2Not9yc+JSwcl0nbqfcj88gkCffgechy1oCuH0BS1Un9H0uI0AIXBa8 6RjO53xFGBq6z9Zib9l2/hD8hGV/8GJJqAyKqxZo6uyfKNMOJtGqgZVTN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="12644428" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="12644428" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 06:22:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="800173368" X-IronPort-AV: E=Sophos;i="6.04,308,1695711600"; d="scan'208";a="800173368" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by orsmga001.jf.intel.com with ESMTP; 16 Nov 2023 06:22:49 -0800 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: artem.bityutskiy@linux.intel.com, rui.zhang@intel.com, Kan Liang Subject: [RESEND PATCH 2/4] x86/smp: Export symbol cpu_clustergroup_mask Date: Thu, 16 Nov 2023 06:22:43 -0800 Message-Id: <20231116142245.1233485-2-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20231116142245.1233485-1-kan.liang@linux.intel.com> References: <20231116142245.1233485-1-kan.liang@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 06:22:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782730804553985277 X-GMAIL-MSGID: 1782730804553985277 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); static void impress_friends(void) {