From 4c0209bc31d26d1205fe0db29f33ce0290daf3d1 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 8 Sep 2026 09:08:08 +0200 Subject: [PATCH] lib/ucs2_string: Suppress modinfo when __DISABLE_EXPORTS is set Allow the UCS-2 string library to be reused in the EFI stub, by suppressing the modinfo data that is usually emitted so that the library can be built as a module. Reviewed-by: Vincent Mailhol Signed-off-by: Ard Biesheuvel --- lib/ucs2_string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ucs2_string.c b/lib/ucs2_string.c index d3e7eefba1b0..185378e64d2e 100644 --- a/lib/ucs2_string.c +++ b/lib/ucs2_string.c @@ -163,5 +163,7 @@ ucs2_as_utf8(u8 *dest, const ucs2_char_t *src, unsigned long maxlength) } EXPORT_SYMBOL(ucs2_as_utf8); +#ifndef __DISABLE_EXPORTS MODULE_DESCRIPTION("UCS2 string handling"); MODULE_LICENSE("GPL v2"); +#endif