Re: [PATCH] kunit: fixes Compilation error on s390

From: Stephen Rothwell
Date: Sat Mar 29 2025 - 18:10:08 EST


Hi Alessandro,

On Sat, 29 Mar 2025 15:03:20 +0000 Alessandro Carminati <acarmina@xxxxxxxxxx> wrote:
>
> The current implementation of suppressing warning backtraces uses __func__,
> which is a compile-time constant only for non -fPIC compilation.
> GCC's support for this situation in position-independent code varies across
> versions and architectures.
>
> On the s390 architecture, -fPIC is required for compilation, and support
> for this scenario is available in GCC 11 and later.
>
> Fixes: d8b14a2 ("bug/kunit: core support for suppressing warning backtraces")
>
> Signed-off-by: Alessandro Carminati <acarmina@xxxxxxxxxx>

Please keep all the commit message tags together at the end of the
commit message.

--
Cheers,
Stephen Rothwell

Attachment: pgptlLjowzgbk.pgp
Description: OpenPGP digital signature