linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] MIPS: Fix build error ERROR: modpost:
@ 2021-10-28  4:04 Yanteng Si
  2021-10-28  4:04 ` [PATCH v2 1/3] PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driver Yanteng Si
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Yanteng Si @ 2021-10-28  4:04 UTC (permalink / raw)
  To: tsbogend, sergio.paracuellos, f.fainelli, bcm-kernel-feedback-list
  Cc: Yanteng Si, sfr, lorenzo.pieralisi, robh, kw, bhelgaas,
	matthias.bgg, p.zabel, linux-pci, linux-arm-kernel,
	linux-mediatek, linux-mips, chenhuacai, sterlingteng, linux-next

v2:

* Pick Sevrgio's Acked-by tag to Patch 1/3;
* Rewrite prefix;
* Use EXPORT_SYMBOL_GPL();
* Add haojun's patch into my thread and rewrite commit message.(Patch 3/3)

note: These errors are generated in the *linux-next.git*.

https://lore.kernel.org/linux-mips/cover.1635333327.git.siyanteng@loongson.cn/T/#t

v1:

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.

Wang Haojun (1):
  MIPS: Export board_be_handler to modules

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

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

-- 
2.27.0


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

end of thread, other threads:[~2021-11-15  8:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28  4:04 [PATCH v2 0/3] MIPS: Fix build error ERROR: modpost: Yanteng Si
2021-10-28  4:04 ` [PATCH v2 1/3] PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driver Yanteng Si
2021-10-28  4:04 ` [PATCH v2 2/3] MIPS: cm/cpc: export some missing symbols to be able to use them from driver code Yanteng Si
2021-10-28  4:11   ` Sergio Paracuellos
2021-10-28  9:23     ` Thomas Bogendoerfer
2021-10-28  9:34       ` Sergio Paracuellos
2021-10-28  9:59         ` Sergio Paracuellos
2021-10-28 20:47           ` Bjorn Helgaas
2021-10-29  5:28             ` Sergio Paracuellos
2021-10-29 18:49               ` Bjorn Helgaas
2021-10-29 19:37                 ` Sergio Paracuellos
2021-10-29 19:47                   ` Bjorn Helgaas
2021-10-29 20:27                     ` Sergio Paracuellos
2021-10-30  5:21                       ` Sergio Paracuellos
2021-10-30  5:38                         ` Sergio Paracuellos
2021-11-07  7:00                           ` Sergio Paracuellos
2021-11-09 22:41                             ` Bjorn Helgaas
2021-11-10  6:00                               ` Sergio Paracuellos
2021-11-15  8:17                                 ` Sergio Paracuellos
2021-10-28  4:04 ` [PATCH v2 3/3] MIPS: traps: export a missing symbols to be able to use it " 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).