[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f7i6zdebo2cxwbf5bkjh3v6ibnlwhumdytakrziwb5gfcsalc6@464tcaykwd4u>
Date: Mon, 16 Jun 2025 18:36:31 +0530
From: Manivannan Sadhasivam <mani@...nel.org>
To: Lukas Wunner <lukas@...ner.de>
Cc: brgl@...ev.pl, kernel test robot <lkp@...el.com>, bhelgaas@...gle.com,
oe-kbuild-all@...ts.linux.dev, linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Jim Quinlan <james.quinlan@...adcom.com>, Bjorn Helgaas <helgaas@...nel.org>
Subject: Re: [PATCH v3] PCI/pwrctrl: Move pci_pwrctrl_create_device()
definition to drivers/pci/pwrctrl/
On Mon, Jun 16, 2025 at 02:52:03PM +0200, Lukas Wunner wrote:
> On Mon, Jun 16, 2025 at 06:07:48PM +0530, Manivannan Sadhasivam wrote:
> > On Mon, Jun 16, 2025 at 08:21:20PM +0800, kernel test robot wrote:
> > > ld: drivers/pci/probe.o: in function `pci_scan_single_device':
> > > >> probe.c:(.text+0x2400): undefined reference to `pci_pwrctrl_create_device'
> >
> > Hmm, so we cannot have a built-in driver depend on a module...
>
> Does it work if you export pci_pwrctrl_create_device()?
>
No it doesn't. And that's expected since the export is usually *for* the
modules and not the other way around.
- Mani
--
மணிவண்ணன் சதாசிவம்
Powered by blists - more mailing lists