[Skiboot] [PATCH] pau: Fix a build error with GCC 13.1.1

Reza Arbab arbab at linux.ibm.com
Wed Jul 12 00:48:40 AEST 2023


On Mon, Jul 10, 2023 at 03:13:11PM +0530, Vaibhav Jain wrote:
>Compiling hmi.c with GCC 13.1.1 results in following error
>
>core/hmi.c:860:25: error: ‘pau’ may be used uninitialized [-Werror=maybe-uninitialized]
>  860 |                         pau_opencapi_dump_scoms(pau);
>      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>Fix this by initializing variable 'pau' with NULL when defined in
>npu_fir_errors(). Variable 'pau' is only assigned/referenced in switch-case
>blocks when phb_type == phb_type_pau_opencapi. Hence this patch shouldn't
>introduce any behavioral changes.

Seems like this is a fairly recent update in f38 and rawhide. Thanks for 
the quick fix!

-- 
Reza Arbab


More information about the Skiboot mailing list