Re: [PATCH v2 1/2] vsprintf: Only export no_hash_pointers to test module

From: Andy Shevchenko

Date: Mon May 04 2026 - 06:57:44 EST


On Mon, May 04, 2026 at 12:43:40PM +0200, Thomas Weißschuh wrote:
> Aside from the printf test module, no module should ever use this symbol.

...

> -EXPORT_SYMBOL_GPL(no_hash_pointers);

> +#if IS_MODULE(CONFIG_PRINTF_KUNIT_TEST)
> +EXPORT_SYMBOL_FOR_MODULES(no_hash_pointers, "printf_kunit");
> +#endif

But do we need that ugly ifdeffery? the infrastructure should handle that.
(Also, if I build a module separately after the kernel, it won't work.)


--
With Best Regards,
Andy Shevchenko