X86 platform drivers
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Suma Hegde <suma.hegde@amd.com>
Cc: platform-driver-x86@vger.kernel.org,
	Hans de Goede <hdegoede@redhat.com>,
	 Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Subject: Re: [PATCH 07/10] platform/x86/amd/hsmp: Use name space while exporting module symbols
Date: Mon, 8 Jul 2024 13:23:36 +0300 (EEST)	[thread overview]
Message-ID: <d3f15df2-d903-79a1-38b3-d869f069b61c@linux.intel.com> (raw)
In-Reply-To: <20240627053958.2533860-8-suma.hegde@amd.com>

On Thu, 27 Jun 2024, Suma Hegde wrote:

> hsmp_send_message() is exported with AMD_HSMP name space.
> The other modules who would like to use this symbol,
> need to import AMD_HSMP namespace using MODULE_IMPORT_NS()
> to get away with warning.
> 
> Signed-off-by: Suma Hegde <suma.hegde@amd.com>
> Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
> ---
>  drivers/platform/x86/amd/hsmp/hsmp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/amd/hsmp/hsmp.c b/drivers/platform/x86/amd/hsmp/hsmp.c
> index 8cad5e813947..4bf598021f4a 100644
> --- a/drivers/platform/x86/amd/hsmp/hsmp.c
> +++ b/drivers/platform/x86/amd/hsmp/hsmp.c
> @@ -185,7 +185,7 @@ int hsmp_send_message(struct hsmp_message *msg)
>  
>  	return ret;
>  }
> -EXPORT_SYMBOL_GPL(hsmp_send_message);
> +EXPORT_SYMBOL_NS_GPL(hsmp_send_message, AMD_HSMP);
>  
>  int hsmp_test(u16 sock_ind, u32 value)
>  {
> 

Hmm, there seem to be no in-kernel users of this as you didn't need to do 
any user side import adaptation...

-- 
 i.


  reply	other threads:[~2024-07-08 10:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27  5:39 [PATCH 00/10] platform/x86/amd/hsmp: Split ACPI and plat device driver Suma Hegde
2024-06-27  5:39 ` [PATCH 01/10] platform/x86/amd/hsmp: Create hsmp/ directory Suma Hegde
2024-06-27  5:39 ` [PATCH 02/10] platform/x86/amd/hsmp: Create wrapper function init_acpi() Suma Hegde
2024-07-09 10:24   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 03/10] platform/x86/amd/hsmp: Move strcuture and macros to header file Suma Hegde
2024-06-27 19:30   ` Mario Limonciello
2024-07-09 10:21   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 04/10] platform/x86/amd/hsmp: Move platform device specific code to plat.c Suma Hegde
2024-07-09 10:20   ` Ilpo Järvinen
2024-06-27  5:39 ` [PATCH 05/10] platform/x86/amd/hsmp: Move ACPI code to acpi.c Suma Hegde
2024-07-09 10:09   ` Ilpo Järvinen
2024-07-09 10:50     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 06/10] platform/x86/amd/hsmp: Create mutually exclusive ACPI and plat drivers Suma Hegde
2024-07-08 10:15   ` Ilpo Järvinen
2024-07-09  6:41     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 07/10] platform/x86/amd/hsmp: Use name space while exporting module symbols Suma Hegde
2024-07-08 10:23   ` Ilpo Järvinen [this message]
2024-06-27  5:39 ` [PATCH 08/10] platform/x86/amd/hsmp: Move read and is_visible to respective files Suma Hegde
2024-06-27 19:48   ` Mario Limonciello
2024-06-28  3:50     ` Suma Hegde
2024-06-27  5:39 ` [PATCH 09/10] platform/x86/amd/hsmp: Use dev_groups in the driver structure Suma Hegde
2024-06-27  5:39 ` [PATCH 10/10] platform/x86/amd/hsmp: Fix potential spectre issue Suma Hegde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3f15df2-d903-79a1-38b3-d869f069b61c@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=hdegoede@redhat.com \
    --cc=naveenkrishna.chatradhi@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=suma.hegde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox