Skip to content

MIPS: Fix build error ERROR: modpost:

Yanteng Si linux-arm-kernel linux-mediatek linux-mips linux-next linux-pci 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 16 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* 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)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: mt7621: Add MODULE_* macros to MT7621 PCIe host controller driverdrivers/pci/controller/pcie-mt7621.c+2 -00 replies
2/3MIPS: cm/cpc: export some missing symbols to be able to use them from driver codearch/mips/kernel/mips-cm.c arch/mips/kernel/mips-cpc.c+6 -016 replies
3/3MIPS: traps: export a missing symbols to be able to use it from driver codearch/mips/kernel/traps.c+1 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSergio Paracuellos
1/3A-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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/[email protected]/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(+)
Signature · 1 line
2.27.0