Re: [PATCH] pinctrl: mcp23s08: Propagate reset GPIO errors
From: Bui Duc Phuc
Date: Fri Oct 09 2026 - 23:26:51 EST
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202610100943.RQhhOoh8-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/pinctrl/pinctrl-mcp23s08.c:617:29: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
> 617 | return dev_err_probe(dev, ret, "failed to get reset GPIO\n");
> | ^~~
> drivers/pinctrl/pinctrl-mcp23s08.c:592:17: note: initialize the variable 'ret' to silence this warning
> 592 | int status, ret;
> | ^
> | = 0
> 1 warning generated.
>
Thanks for the report.
I also received a similar warning from the sashiko-reviews earlier.
I'll return PTR_ERR(mcp->reset_gpio) in v2.