All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Paul Cercueil <paul.cercueil@bootlin.com>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Len Brown <lenb@kernel.org>, Russell King <linux@armlinux.org.uk>,
	Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>,
	Pawel Chmielewski <pawel.chmielewski@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-acpi@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Paul Cercueil <paul.cercueil@bootlin.com>
Subject: Re: [PATCH v6 2/2] clk: Search clocks of ACPI device with its companion device
Date: Tue, 1 Dec 2026 01:15:30 +0800	[thread overview]
Message-ID: <20261201011220.DsUj74jS-lkp@intel.com> (raw)
In-Reply-To: <20261130122827.157946-3-paul.cercueil@bootlin.com>

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: nios2-defconfig (https://download.01.org/0day-ci/archive/20261201/20261201011220.DsUj74jS-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201011220.DsUj74jS-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/20261201011220.DsUj74jS-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/clk/clkdev.c: In function 'clk_get':
>> drivers/clk/clkdev.c:116:36: error: invalid use of undefined type 'struct acpi_device'
     116 |                 clk = clk_get(&adev->dev, con_id);
         |                                    ^~


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

  parent reply	other threads:[~2026-11-30 17:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 12:28 [PATCH v6 0/2] ACPI: Add ACPI 6.5 fixed clock support Paul Cercueil
2026-11-30 12:28 ` [PATCH v6 1/2] ACPI: Add basic support for ACPI 6.5 fixed clock resources Paul Cercueil
2026-11-30 12:28 ` [PATCH v6 2/2] clk: Search clocks of ACPI device with its companion device Paul Cercueil
2026-11-30 16:44   ` kernel test robot
2026-11-30 17:15   ` kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-30 18:19 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201011220.DsUj74jS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=acpica-devel@lists.linux.dev \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maciej.wieczor-retman@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paul.cercueil@bootlin.com \
    --cc=pawel.chmielewski@intel.com \
    --cc=rafael@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.