Re: arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here

From: Tony Lindgren
Date: Wed Mar 31 2021 - 02:39:43 EST


* kernel test robot <lkp@xxxxxxxxx> [210327 05:06]:
> >> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized]
> name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
> ^~~~~~~
> arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning
> const char * const *sr_inst;
> ^
> = NULL
> 1 warning generated.

Thanks for the report, FYI I posted a fix for this at:

https://lore.kernel.org/linux-omap/20210331063556.30654-1-tony@xxxxxxxxxxx/T/#u

Regards,

Tony