Re: perf: bench/sched-messaging.c:73:13: error: 'dummy' may be used uninitialized

From: Greg Kroah-Hartman
Date: Tue Jul 13 2021 - 11:18:02 EST


On Tue, Jul 13, 2021 at 08:40:28PM +0530, Naresh Kamboju wrote:
> LKFT have noticed these warnings / errors when we have updated gcc version from
> gcc-9 to gcc-11 on stable-rc linux-5.4.y branch. I have provided the steps to
> reproduce in this email below.
>
> Following perf builds failed with gcc-11 with linux-5.4.y branch.
> - build-arm-gcc-11-perf
> - build-arm64-gcc-11-perf
> - build-i386-gcc-11-perf
> - build-x86-gcc-11-perf
>
> Build error log:
> --------------------

<snip>

I imagine this is fixed in newer kernel versions, so if you could
provide the git ids of the patches needed to fix this up in 5.4, that
would be great!

thanks,

greg k-h