From patchwork Wed Mar 15 18:33:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "David E. Box" X-Patchwork-Id: 70366 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp57114wrt; Wed, 15 Mar 2023 11:38:36 -0700 (PDT) X-Google-Smtp-Source: AK7set+xftkhZK7Zu4o7fWDkxCuGTesTpx1PCjTuD7obg2hbkl7vEjHWo2gEAR5yBGFjMbUXg9SU X-Received: by 2002:a17:903:2449:b0:19f:3cdc:56dc with SMTP id l9-20020a170903244900b0019f3cdc56dcmr423132pls.33.1678905516256; Wed, 15 Mar 2023 11:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678905516; cv=none; d=google.com; s=arc-20160816; b=IEVfzS3R65VQ5vjfwwmmEiFH9adbUmhk+riHq5VyzvQEK42pMRDtAM4/6QyJMsP21H 5Z7fEJDpACUhUEzu1LoQud0qN6hplwJirF2pgZd8zMdMu+CU5NXe1RXZMR6gGV0H5L1w CGT+P7tgefL5fjqE6sxJs4fHlhO8DEEeDOUp9Dq4W6khBbh30WjclxvaoA/FQPxQJ9oq Hv2ANc2/y88jDVhKFjSmcrE/a1iEUJKX4XLonQRgpcx+04tq0kBU6KvpUJbbLAYb3X3W qc1SWB4Lm6NI+qorCKeb0pzOpqYeqsW9bEeDf3ozqOxLOAe0qTgUzVb0WXz8bRMrFFVc L43w== 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=y1JSFidqKtKuHuvQjlPvcZalLBwZL4lectbpMkn8YWU=; b=twF/EkDosFoLCDnUqf9xx6sE2DYEACcSLGvJ9I0StyeQTZjPYAs6zURzTa+LppfK+B +bLFrRaPOotY+EuBCBGlZflfjcOUAUGKjGo1yCyhJ+z4wTPrWUaRldwTqLG3nPZFtHQf OIOL0k5YY+NVvpAha6Son2B2ko6X8/VoyI4IveY2go3A9T1SeI2eg+qkke8NqkwpG9b3 vbe0BbpZO1ohJKeS+9AB6fxugtKAwIdBpHuY3qrORd8rWVKuPhGjKZ4bFpnLYjpYQnOa DOOGqcq8O9pfW8g8EQVDm9pdg94OPySLTx/IM9ac/ueaEVgsBSDEDWbahXcwojmXL2Wx lTbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SxtjaWDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a170902c94c00b0019f269f06fbsi1292631pla.3.2023.03.15.11.38.21; Wed, 15 Mar 2023 11:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SxtjaWDH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232111AbjCOSe0 (ORCPT + 99 others); Wed, 15 Mar 2023 14:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbjCOSeM (ORCPT ); Wed, 15 Mar 2023 14:34:12 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE156AD28; Wed, 15 Mar 2023 11:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678905250; x=1710441250; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SLZM9Rd4ZbAV+HV63P8xQDOFKv2CzGBHIeab4YXE1bU=; b=SxtjaWDHZuGsebxR2EtzSIvWNRtT3D9kLv/51mbZlFikK/GdSGLAVNh/ 6BqrYbrqGbVzxfKXGWlXrjhYMFGlrfhQxDh0C2Z9LMQ+LLK0uDW4WzLso Yk+2hTylaHyOdtJOwzmp1AxCp6qxgC2VT6Whd2HlXnFsHk9HS0izX63Dy CuoBkpgicWpkukjuaM/s5zQVY/1kdgYKLl+eCoHLQ6QvFvfnr6shqqJPB VLBkTK+gUoIKe/dbO8hDV9M0G/SeEZR9R4h6r5PPPfD7Xb2p5rBN6OBYF 7gta8GwFKlrYHbMHdDpekiklzt2W183kH9kT52zAYAEoFRne80gbMV1jM A==; X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="340154538" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="340154538" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 11:34:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10650"; a="925435208" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="925435208" Received: from linux.intel.com ([10.54.29.200]) by fmsmga006.fm.intel.com with ESMTP; 15 Mar 2023 11:34:07 -0700 Received: from debox1-desk4.intel.com (unknown [10.209.75.205]) by linux.intel.com (Postfix) with ESMTP id 19268580D2C; Wed, 15 Mar 2023 11:34:07 -0700 (PDT) From: "David E. Box" To: irenic.rajneesh@gmail.com, david.e.box@linux.intel.com, hdegoede@redhat.com, markgross@kernel.org, andy.shevchenko@gmail.com, rajvi.jingar@linux.intel.com, xi.pardee@intel.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH 04/11] platform/x86/intel/pmt: Add INTEL_PMT module namespace Date: Wed, 15 Mar 2023 11:33:58 -0700 Message-Id: <20230315183405.2465630-5-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230315183405.2465630-1-david.e.box@linux.intel.com> References: <20230315183405.2465630-1-david.e.box@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760460030782046464?= X-GMAIL-MSGID: =?utf-8?q?1760460030782046464?= Since the currently exported symbols in pmt_class are only used by other Intel PMT drivers, create an INTEL_PMT module namespace for them. Signed-off-by: David E. Box --- drivers/platform/x86/intel/pmt/class.c | 6 +++--- drivers/platform/x86/intel/pmt/crashlog.c | 1 + drivers/platform/x86/intel/pmt/telemetry.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/intel/pmt/class.c b/drivers/platform/x86/intel/pmt/class.c index 7136475d4ab5..acc96f0cc224 100644 --- a/drivers/platform/x86/intel/pmt/class.c +++ b/drivers/platform/x86/intel/pmt/class.c @@ -33,7 +33,7 @@ bool intel_pmt_is_early_client_hw(struct device *dev) */ return !!(ivdev->quirks & VSEC_QUIRK_EARLY_HW); } -EXPORT_SYMBOL_GPL(intel_pmt_is_early_client_hw); +EXPORT_SYMBOL_NS_GPL(intel_pmt_is_early_client_hw, INTEL_PMT); static inline int pmt_memcpy64_fromio(void *to, const u64 __iomem *from, size_t count) @@ -335,7 +335,7 @@ int intel_pmt_dev_create(struct intel_pmt_entry *entry, struct intel_pmt_namespa return intel_pmt_dev_register(entry, ns, dev); } -EXPORT_SYMBOL_GPL(intel_pmt_dev_create); +EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_create, INTEL_PMT); void intel_pmt_dev_destroy(struct intel_pmt_entry *entry, struct intel_pmt_namespace *ns) @@ -351,7 +351,7 @@ void intel_pmt_dev_destroy(struct intel_pmt_entry *entry, device_unregister(dev); xa_erase(ns->xa, entry->devid); } -EXPORT_SYMBOL_GPL(intel_pmt_dev_destroy); +EXPORT_SYMBOL_NS_GPL(intel_pmt_dev_destroy, INTEL_PMT); static int __init pmt_class_init(void) { diff --git a/drivers/platform/x86/intel/pmt/crashlog.c b/drivers/platform/x86/intel/pmt/crashlog.c index ace1239bc0a0..bbb3d61d09f4 100644 --- a/drivers/platform/x86/intel/pmt/crashlog.c +++ b/drivers/platform/x86/intel/pmt/crashlog.c @@ -328,3 +328,4 @@ module_exit(pmt_crashlog_exit); MODULE_AUTHOR("Alexander Duyck "); MODULE_DESCRIPTION("Intel PMT Crashlog driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(INTEL_PMT); diff --git a/drivers/platform/x86/intel/pmt/telemetry.c b/drivers/platform/x86/intel/pmt/telemetry.c index 5e4009c05ecf..71cdef42084a 100644 --- a/drivers/platform/x86/intel/pmt/telemetry.c +++ b/drivers/platform/x86/intel/pmt/telemetry.c @@ -160,3 +160,4 @@ module_exit(pmt_telem_exit); MODULE_AUTHOR("David E. Box "); MODULE_DESCRIPTION("Intel PMT Telemetry driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(INTEL_PMT);