Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [rafael-pm:bleeding-edge 91/93] drivers/pinctrl/pinctrl-amd.c:987:2: error: must use 'struct' tag to refer to type 'pinctrl_dev'
@ 2025-05-06  8:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-06  8:05 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: llvm, oe-kbuild-all, linux-acpi, devel, linux-pm,
	Mario Limonciello

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   c6039ca5edc14d1f0b34aa83a37fb7a379d8de46
commit: a2c2d5006579832e53851808f05d1bcf866215ca [91/93] pinctrl: amd: Fix hibernation support with CONFIG_SUSPEND unset
config: x86_64-buildonly-randconfig-001-20250506 (https://download.01.org/0day-ci/archive/20250506/202505061622.qVVdwLYk-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250506/202505061622.qVVdwLYk-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505061622.qVVdwLYk-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-amd.c:987:2: error: must use 'struct' tag to refer to type 'pinctrl_dev'
     987 |         pinctrl_dev = dev_get_drvdata(dev);
         |         ^
         |         struct 
>> drivers/pinctrl/pinctrl-amd.c:987:14: error: expected identifier or '('
     987 |         pinctrl_dev = dev_get_drvdata(dev);
         |                     ^
   2 errors generated.


vim +987 drivers/pinctrl/pinctrl-amd.c

79d2c8bede2c93 Daniel Drake        2017-09-11  984  
f31f33dbb3bab5 Maciej S. Szmigiero 2025-01-06  985  static int amd_gpio_suspend(struct device *dev)
f31f33dbb3bab5 Maciej S. Szmigiero 2025-01-06  986  {
179db1909c5c4b Mario Limonciello   2025-04-07 @987  	pinctrl_dev = dev_get_drvdata(dev);
f31f33dbb3bab5 Maciej S. Szmigiero 2025-01-06  988  	return amd_gpio_suspend_hibernate_common(dev, true);
f31f33dbb3bab5 Maciej S. Szmigiero 2025-01-06  989  }
f31f33dbb3bab5 Maciej S. Szmigiero 2025-01-06  990  

:::::: The code at line 987 was first introduced by commit
:::::: 179db1909c5c4b5300cce626507b0f843f7d2cc2 pinctrl: amd: Add an LPS0 check() callback

:::::: TO: Mario Limonciello <mario.limonciello@amd.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-06  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06  8:05 [rafael-pm:bleeding-edge 91/93] drivers/pinctrl/pinctrl-amd.c:987:2: error: must use 'struct' tag to refer to type 'pinctrl_dev' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox