Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v6 2/2] clk: Search clocks of ACPI device with its companion device
       [not found] <20261130122827.157946-3-paul.cercueil@bootlin.com>
@ 2026-11-30 16:44 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-30 16:44 UTC (permalink / raw)
  To: Paul Cercueil, Rafael J . Wysocki, Len Brown, Russell King,
	Maciej Wieczor-Retman, Pawel Chmielewski
  Cc: llvm, oe-kbuild-all, linux-acpi, linux-arm-kernel, acpica-devel,
	linux-kernel, Thomas Petazzoni, Paul Cercueil

Hi Paul,

kernel test robot noticed the following build errors:

[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge linus/master v7.4-rc5 next-20261127]
[cannot apply to arm/for-next arm/fixes rmk-arm/clkdev]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Paul-Cercueil/ACPI-Add-basic-support-for-ACPI-6-5-fixed-clock-resources/20261130-132826
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20261130122827.157946-3-paul.cercueil%40bootlin.com
patch subject: [PATCH v6 2/2] clk: Search clocks of ACPI device with its companion device
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20261201/20261201003418.VGtmNGd5-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201003418.VGtmNGd5-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/20261201003418.VGtmNGd5-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/clk/clkdev.c:116:22: error: incomplete definition of type 'struct acpi_device'
     116 |                 clk = clk_get(&adev->dev, con_id);
         |                                ~~~~^
   include/linux/device/bus.h:222:8: note: forward declaration of 'struct acpi_device'
     222 | struct acpi_device;
         |        ^
   1 error generated.


vim +116 drivers/clk/clkdev.c

   100	
   101	struct clk *clk_get(struct device *dev, const char *con_id)
   102	{
   103		const char *dev_id = dev ? dev_name(dev) : NULL;
   104		struct acpi_device *adev;
   105		struct clk_hw *hw;
   106		struct clk *clk;
   107	
   108		if (dev && dev->of_node) {
   109			hw = of_clk_get_hw(dev->of_node, 0, con_id);
   110			if (!IS_ERR(hw) || PTR_ERR(hw) == -EPROBE_DEFER)
   111				return clk_hw_create_clk(dev, hw, dev_id, con_id, NULL);
   112		}
   113	
   114		if (dev && has_acpi_companion(dev)) {
   115			adev = ACPI_COMPANION(dev);
 > 116			clk = clk_get(&adev->dev, con_id);
   117			if (!IS_ERR(clk) || PTR_ERR(clk) != -ENOENT)
   118				return clk;
   119		}
   120	
   121		return __clk_get_sys(dev, dev_id, con_id);
   122	}
   123	EXPORT_SYMBOL(clk_get);
   124	

-- 
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:[~2026-11-30 16:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261130122827.157946-3-paul.cercueil@bootlin.com>
2026-11-30 16:44 ` [PATCH v6 2/2] clk: Search clocks of ACPI device with its companion device 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