From patchwork Thu Mar 16 22:57:35 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: 71010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp47094wrt; Thu, 16 Mar 2023 16:23:31 -0700 (PDT) X-Google-Smtp-Source: AK7set8+XPyT3Ye3/ugj3821lioe3e1Y8R1M+emDTnsdAFLyQ8y8rgP2c8NDTEBR57aRIcWgz9p2 X-Received: by 2002:a17:90b:1b50:b0:237:4170:f63 with SMTP id nv16-20020a17090b1b5000b0023741700f63mr5742253pjb.18.1679009011085; Thu, 16 Mar 2023 16:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679009011; cv=none; d=google.com; s=arc-20160816; b=HdTmPi+9o5hJBdxQsicjHATHIOwKKA+zBxMcIgvNjctJpby4MMpFcg5rSaSf4Pog4/ 1OopEG3ngGWbFwMXqohp7/ZlkrM+D8OHx8cDl5TCQ1of9cHG0qNF2FwZ9Rwyc8SiAw9U OXaazKFMI9R9oAm+et13xLOOdKMvM8D2rob1zBGX0zEdycwHdTQ/3usLlCEzX39mvIue CZquC/XfWfaScjkhRZkGPjYbN2TZ5GDNtJPOartfY3orvMTq/evsIdHoBoINyK34gRCn yMKP4n69INw3e5VIFrJczKZOeBuXjbAgtXCRueDzY38m2yGdjAkE9k/J9bCwEs/M35Ne XZOA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1c0+ttHC2thCbvyHwtOFkGWAqeaeNQuf2olqhnIyT0w=; b=n8zJL5POqwKJQ87FUox/k0xvxx5sr5UIneaF3eJ2MnMul5sO62Ugl0nD0hTP2jMWYd OP1hnxMm7hkiiZpr08w2VVRROPWsufTI8+6FV8MC08mjNl7zolxl+Vx3QKiQptLZ/X7G n6t97v/bAZPyRpKTiiDgGOucV8vel7K/dMH2xRMIBL6bsC0UCVqoTm6bzHlbXAsugio0 gTLh1+LFCBaQpswaCDvzwT1YNOyVbiFt32VeeOXhcxh4UrpvLv/IQgXmB0a8WkJjYGGQ +aC0wWEWuyDAHBScMwAH5KAdmPkBhZuya0vMHg/X7bP2h8+RgnZ7kxDvlKBwJZ3D7erg n9Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I4xDHW40; 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 g190-20020a636bc7000000b0050bf58ab139si545189pgc.590.2023.03.16.16.23.16; Thu, 16 Mar 2023 16:23:31 -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=I4xDHW40; 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 S230234AbjCPW5j (ORCPT + 99 others); Thu, 16 Mar 2023 18:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjCPW5i (ORCPT ); Thu, 16 Mar 2023 18:57:38 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46061C5ADD; Thu, 16 Mar 2023 15:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679007457; x=1710543457; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qwfHlTCxA1ylkKrdEJyrKd/vE/qqC1tP3ZmUkPiWOKY=; b=I4xDHW40p8EE9wt69Ocf10NcFBsI8hwCZHSMs45osnvkKkKdJgFC8eGv ppuak4UO1ifYIFtjwFE/ag6uzB1/cThcXdYqyi54UViEyTwD7zbJ+R1Kq ycnKNp7WWK+EbeIVPf8CNIOxW0xxHHgM/OP8HHI8kvu/k0e+Od9XHcIG2 yaglbW0WSjNox1prC/Ome/s58P96u+p+zxgyBZ5PWOTAWsYs4WELFSBVM adIhVNNKALYkNtvPKwqpssIJonb6vVbkbX1q5JRbRyvIq2PPncs46y+mY FhNSXq5Wu0AUkdqn6r2HVuaE5Z8axqoMHIg1BwBXGK/Vr2hiHUERiE71q Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="321984196" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="321984196" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 15:57:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="803914129" X-IronPort-AV: E=Sophos;i="5.98,267,1673942400"; d="scan'208";a="803914129" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 16 Mar 2023 15:57:36 -0700 Received: from debox1-desk4.intel.com (unknown [10.212.175.15]) by linux.intel.com (Postfix) with ESMTP id 6A7D6580C1F; Thu, 16 Mar 2023 15:57:36 -0700 (PDT) From: "David E. Box" To: irenic.rajneesh@gmail.com, david.e.box@intel.com, hdegoede@redhat.com, markgross@kernel.org, andy.shevchenko@gmail.com Cc: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH 1/2] platform/x86/intel/pmt: Add INTEL_PMT module namespace Date: Thu, 16 Mar 2023 15:57:35 -0700 Message-Id: <20230316225736.2856521-1-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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?1760568552765770623?= X-GMAIL-MSGID: =?utf-8?q?1760568552765770623?= 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 Reviewed-by: Andy Shevchenko --- 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(-) base-commit: 79df06733435e2773eb5e9ab9c0ce13c23e4cd88 diff --git a/drivers/platform/x86/intel/pmt/class.c b/drivers/platform/x86/intel/pmt/class.c index 46598dcb634a..0b96d75f5924 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->info->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) @@ -327,7 +327,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) @@ -343,7 +343,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);