Re: [PATCH v2 2/2] vsprintf: Add test for restricted kernel pointers

From: Petr Mladek

Date: Thu May 14 2026 - 09:06:50 EST


On Mon 2026-05-04 13:58:25, Andy Shevchenko wrote:
> On Mon, May 04, 2026 at 12:43:41PM +0200, Thomas Weißschuh wrote:
> > Fill out the tests for restricted kernel pointers, using the %pK format.
>
> ...
>
> > +#if IS_MODULE(CONFIG_PRINTF_KUNIT_TEST)
> > +EXPORT_SYMBOL_FOR_MODULES(kptr_restrict, "printf_kunit");
> > +#endif
>
> Same Q here.

Same here.

With the ifdeffs removed:

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Tested-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr

PS: No need to send v3. I could remove the ifdeffs when committing
the patchset. I am going to commit it tomorrow unless anyone
complains.

I am sorry for the late review and short notice before committing.
I had vacation last 5 days. And I am traveling next week.