[PATCH v2 0/3] MIPS: Fix build error ERROR: modpost:

Yanteng Si
2021-10-28T04:05:29Z

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