linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] drivers/mt7621: Fix build error ERROR: modpost:
@ 2021-10-27 11:31 Yanteng Si
  2021-10-27 11:31 ` [PATCH 1/2] PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driver Yanteng Si
  2021-10-27 11:31 ` [PATCH 2/2] PCI: mt7621: Export mips_cm/cpc/gcr_* to modules Yanteng Si
  0 siblings, 2 replies; 7+ messages in thread
From: Yanteng Si @ 2021-10-27 11:31 UTC (permalink / raw)
  To: sergio.paracuellos
  Cc: Yanteng Si, lorenzo.pieralisi, robh, kw, bhelgaas, matthias.bgg,
	p.zabel, linux-pci, linux-arm-kernel, linux-mediatek, tsbogend,
	linux-mips, chenhuacai, sterlingteng

Since commit 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver")
the MT7621 PCIe host controller driver is built as a module but no MODULE_*() attributes
were specified, causing a build error due to missing license information. At the same time,
modpost complains once these drivers become modules.

ERROR: modpost: missing MODULE_LICENSE() in drivers/pci/controller/pcie-mt7621.o
ERROR: modpost: "mips_cm_unlock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cpc_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_lock_other" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_cm_is64" [drivers/pci/controller/pcie-mt7621.ko] undefined!
ERROR: modpost: "mips_gcr_base" [drivers/pci/controller/pcie-mt7621.ko] undefined!

Let's just fix them.

Yanteng Si (2):
  PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driver
  PCI: mt7621: Export mips_cm/cpc/gcr_* to modules

 arch/mips/kernel/mips-cm.c           | 5 +++++
 arch/mips/kernel/mips-cpc.c          | 1 +
 drivers/pci/controller/pcie-mt7621.c | 2 ++
 3 files changed, 8 insertions(+)

-- 
2.27.0


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

end of thread, other threads:[~2021-10-28  1:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 11:31 [PATCH 0/2] drivers/mt7621: Fix build error ERROR: modpost: Yanteng Si
2021-10-27 11:31 ` [PATCH 1/2] PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driver Yanteng Si
2021-10-27 11:59   ` Sergio Paracuellos
2021-10-28  1:45     ` yanteng si
2021-10-27 11:31 ` [PATCH 2/2] PCI: mt7621: Export mips_cm/cpc/gcr_* to modules Yanteng Si
2021-10-27 11:45   ` Sergio Paracuellos
2021-10-28  1:58     ` yanteng si

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).