drivers/pinctrl/pinctrl-amd.c:40:25: warning: variable 'pinctrl_dev' set but not used

From: kernel test robot

Date: Tue Mar 31 2026 - 12:07:13 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d0c3bcd5b8976159d835a897254048e078f447e6
commit: 179db1909c5c4b5300cce626507b0f843f7d2cc2 pinctrl: amd: Add an LPS0 check() callback
date: 12 months ago
config: mips-randconfig-r061-20260331 (https://download.01.org/0day-ci/archive/20260331/202603312338.tTeBLiWB-lkp@xxxxxxxxx/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 2cd67b8b69f78e3f95918204320c3075a74ba16c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/202603312338.tTeBLiWB-lkp@xxxxxxxxx/reproduce)

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/202603312338.tTeBLiWB-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-amd.c:40:25: warning: variable 'pinctrl_dev' set but not used [-Wunused-but-set-global]
40 | static struct amd_gpio *pinctrl_dev;
| ^
1 warning generated.


vim +/pinctrl_dev +40 drivers/pinctrl/pinctrl-amd.c

39
> 40 static struct amd_gpio *pinctrl_dev;
41

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki