Linux PCI subsystem development
 help / color / mirror / Atom feed
* of_match[] warnings
@ 2020-09-30 22:37 Bjorn Helgaas
  2020-10-01 12:48 ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2020-09-30 22:37 UTC (permalink / raw)
  To: Pratyush Anand, Thomas Petazzoni
  Cc: Lorenzo Pieralisi, Rob Herring, linux-pci

These warnings are sort of annoying.  I guess most of the other
drivers avoid this by depending on OF as well as COMPILE_TEST.

  $ grep -E "CONFIG_(OF|PCIE_(SPEAR13XX|ARMADA_8K))" .config
  CONFIG_PCIE_SPEAR13XX=y
  CONFIG_PCIE_ARMADA_8K=y
  # CONFIG_OF is not set

  $ make W=1 drivers/pci/
  ...
    CC      drivers/pci/controller/dwc/pcie-spear13xx.o
  drivers/pci/controller/dwc/pcie-spear13xx.c:270:34: warning: ‘spear13xx_pcie_of_match’ defined but not used [-Wunused-const-variable=]
    270 | static const struct of_device_id spear13xx_pcie_of_match[] = {
	|                                  ^~~~~~~~~~~~~~~~~~~~~~~
  ...
    CC      drivers/pci/controller/dwc/pcie-armada8k.o
  drivers/pci/controller/dwc/pcie-armada8k.c:344:34: warning: ‘armada8k_pcie_of_match’ defined but not used [-Wunused-const-variable=]
    344 | static const struct of_device_id armada8k_pcie_of_match[] = {
	|                                  ^~~~~~~~~~~~~~~~~~~~~~


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

end of thread, other threads:[~2020-10-01 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-30 22:37 of_match[] warnings Bjorn Helgaas
2020-10-01 12:48 ` Rob Herring
2020-10-01 15:53   ` Bjorn Helgaas
2020-10-01 16:43     ` Rob Herring
2020-10-01 16:50       ` Bjorn Helgaas

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