Re: [PATCH] Revert "printf: Compile the kunit test with DISABLE_BRANCH_PROFILING DISABLE_BRANCH_PROFILING"

From: Andy Shevchenko

Date: Tue Jul 07 2026 - 11:27:10 EST


On Tue, Jul 07, 2026 at 03:55:22PM +0200, Petr Mladek wrote:
> This reverts commit 8901ac9d2c7eb8ed7ae5e749bf13ecb3b6062488.
>
> The commit 94bfc7f3b0c7 ("err.h: use __always_inline on all error pointer
> helpers") fixes the problem with a dead code elimination by always inlining
> IS_ERR() function. It prevents the related linker failures as well.
>
> The workaround with disabling branch profiling is not longer necessary.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko