Skip to contentSkip to conversation

powerpc/pseries: plpks: export plpks_wrapping_is_supported

PATCH In review Srish Srinivasan 2 participants 2 messages Feb 1 – Feb 6 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: plpks: export plpks_wrapping_is_supported

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).

---
 arch/powerpc/platforms/pseries/plpks.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/pseries/plpks.c +1 -0
index 038ecf8f6d6b..23e4e2a922fc 100644
@@ -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'
Signature · 1 line
2.47.3
Tested-by on v1 1/1
#1 lore raw
Quoted 38 lines · Srish Srinivasan

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).

---
arch/powerpc/platforms/pseries/plpks.c | 1 +

1 file changed, 1 insertion(+)
arch/powerpc/platforms/pseries/plpks.c +1 -0
index 038ecf8f6d6b..23e4e2a922fc 100644
@@ -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'
Signature · 1 line
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.

Regards,
Venkat.