Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: cadence: Kconfig: change PCIE_CADENCE configs from tristate to bool
@ 2025-11-13  9:27 Siddharth Vadapalli
  2025-11-13 10:13 ` Arnd Bergmann
  2025-11-13 10:38 ` Hans Zhang
  0 siblings, 2 replies; 12+ messages in thread
From: Siddharth Vadapalli @ 2025-11-13  9:27 UTC (permalink / raw)
  To: lpieralisi, kwilczynski, mani, robh, bhelgaas, unicorn_wang,
	kishon
  Cc: arnd, stable, linux-pci, linux-kernel, linux-arm-kernel, srk,
	s-vadapalli

The drivers associated with the PCIE_CADENCE, PCIE_CADENCE_HOST AND
PCIE_CADENCE_EP configs are used by multiple vendor drivers and serve as a
library of helpers. Since the vendor drivers could individually be built
as built-in or as loadable modules, it is possible to select a build
configuration wherein a vendor driver is built-in while the library is
built as a loadable module. This will result in a build error as reported
in the 'Closes' link below.

Address the build error by changing the library configs to be 'bool'
instead of 'tristate'.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511111705.MZ7ls8Hm-lkp@intel.com/
Fixes: 1c72774df028 ("PCI: sg2042: Add Sophgo SG2042 PCIe driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
---
 drivers/pci/controller/cadence/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/pci/controller/cadence/Kconfig b/drivers/pci/controller/cadence/Kconfig
index 02a639e55fd8..980da64ce730 100644
--- a/drivers/pci/controller/cadence/Kconfig
+++ b/drivers/pci/controller/cadence/Kconfig
@@ -4,16 +4,16 @@ menu "Cadence-based PCIe controllers"
 	depends on PCI
 
 config PCIE_CADENCE
-	tristate
+	bool
 
 config PCIE_CADENCE_HOST
-	tristate
+	bool
 	depends on OF
 	select IRQ_DOMAIN
 	select PCIE_CADENCE
 
 config PCIE_CADENCE_EP
-	tristate
+	bool
 	depends on OF
 	depends on PCI_ENDPOINT
 	select PCIE_CADENCE
-- 
2.51.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-11-17  9:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-13  9:27 [PATCH] PCI: cadence: Kconfig: change PCIE_CADENCE configs from tristate to bool Siddharth Vadapalli
2025-11-13 10:13 ` Arnd Bergmann
2025-11-14  5:47   ` Siddharth Vadapalli
2025-11-14  7:03     ` Arnd Bergmann
2025-11-17  6:05       ` Siddharth Vadapalli
2025-11-17  9:06         ` Arnd Bergmann
2025-11-17  9:23           ` Siddharth Vadapalli
2025-11-17  9:28             ` Manivannan Sadhasivam
2025-11-17  9:42             ` Arnd Bergmann
2025-11-13 10:38 ` Hans Zhang
2025-11-13 10:43   ` Siddharth Vadapalli
2025-11-13 10:51     ` Hans Zhang

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