public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc/pseries: plpks: export plpks_wrapping_is_supported
@ 2026-02-01 16:53 Srish Srinivasan
  2026-02-06 14:43 ` Venkat
  0 siblings, 1 reply; 2+ messages in thread
From: Srish Srinivasan @ 2026-02-01 16:53 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: maddy, mpe, npiggin, christophe.leroy, nayna, zohar, rnsastry,
	linux-kernel, ssrish

Building trusted-keys as a module fails modpost with:

ERROR: modpost: "plpks_wrapping_is_supported" [security/keys/trusted-keys/
trusted.ko] undefined!

Export plpks_wrapping_is_supported() so trusted-keys links cleanly

This patch is intended to be applied on top of the earlier "Extend "trusted
" keys to support a new trust source named the PowerVM Key Wrapping Module
(PKWM)" series (v5).
Link: https://lore.kernel.org/all/20260127145228.48320-1-ssrish@linux.ibm.com/

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602010724.1g9hbLKv-lkp@intel.com/
Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
---
 arch/powerpc/platforms/pseries/plpks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c
index 038ecf8f6d6b..23e4e2a922fc 100644
--- a/arch/powerpc/platforms/pseries/plpks.c
+++ b/arch/powerpc/platforms/pseries/plpks.c
@@ -896,6 +896,7 @@ bool plpks_wrapping_is_supported(void)
 {
 	return wrapsupport;
 }
+EXPORT_SYMBOL_GPL(plpks_wrapping_is_supported);
 
 /**
  * plpks_gen_wrapping_key() - Generate a new random key with the 'wrapping key'
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc/pseries: plpks: export plpks_wrapping_is_supported
  2026-02-01 16:53 [PATCH] powerpc/pseries: plpks: export plpks_wrapping_is_supported Srish Srinivasan
@ 2026-02-06 14:43 ` Venkat
  0 siblings, 0 replies; 2+ messages in thread
From: Venkat @ 2026-02-06 14:43 UTC (permalink / raw)
  To: Srish Srinivasan
  Cc: linuxppc-dev, maddy, mpe, npiggin, christophe.leroy, nayna, zohar,
	rnsastry, linux-kernel



> On 1 Feb 2026, at 10:23 PM, Srish Srinivasan <ssrish@linux.ibm.com> wrote:
> 
> Building trusted-keys as a module fails modpost with:
> 
> ERROR: modpost: "plpks_wrapping_is_supported" [security/keys/trusted-keys/
> trusted.ko] undefined!
> 
> Export plpks_wrapping_is_supported() so trusted-keys links cleanly
> 
> This patch is intended to be applied on top of the earlier "Extend "trusted
> " keys to support a new trust source named the PowerVM Key Wrapping Module
> (PKWM)" series (v5).
> Link: https://lore.kernel.org/all/20260127145228.48320-1-ssrish@linux.ibm.com/
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202602010724.1g9hbLKv-lkp@intel.com/
> Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
> ---
> arch/powerpc/platforms/pseries/plpks.c | 1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c
> index 038ecf8f6d6b..23e4e2a922fc 100644
> --- a/arch/powerpc/platforms/pseries/plpks.c
> +++ b/arch/powerpc/platforms/pseries/plpks.c
> @@ -896,6 +896,7 @@ bool plpks_wrapping_is_supported(void)
> {
> return wrapsupport;
> }
> +EXPORT_SYMBOL_GPL(plpks_wrapping_is_supported);
> 
> /**
>  * plpks_gen_wrapping_key() - Generate a new random key with the 'wrapping key'
> -- 
> 2.47.3
> 

Tested this patch, and with this, build is successful.

With out this patch:

ERROR: modpost: "plpks_wrapping_is_supported" [security/keys/trusted-keys/trusted.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
make[1]: *** [/root/linux/Makefile:2004: modpost] Error 2
make: *** [Makefile:248: __sub-make] Error 2

With this build is successful.

Please add below tag.

Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>

Regards,
Venkat.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-06 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 16:53 [PATCH] powerpc/pseries: plpks: export plpks_wrapping_is_supported Srish Srinivasan
2026-02-06 14:43 ` Venkat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox