Skip to content

arm: remap non-modular uses of module_init properly

Paul Gortmaker linux-arm-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm: use subsys_initcall in non-modular pl320 IPC codedrivers/mailbox/pl320-ipc.c+1 -10 replies
2/3arm: include module.h in drivers/bus/omap_l3_smx.cdrivers/bus/omap_l3_smx.c+1 -00 replies
3/3arm: don't use module_init in non-modular mach-vexpress/spc.c codearch/arm/mach-vexpress/spc.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] arm: remap non-modular uses of module_init properly

The goal is to move module_init/module_exit from init.h and into module.h -- however in doing so, we uncover several instances in ARM code where module_init is used somewhat incorrectly by non modular code, and a file that needs module.h but isn't sourcing it. We need to make these fixups 1st before changing the headers so that we don't cause build failures later on.

The changes are largely inert, however we do cause a largely trivial change in one initcall ordering -- that happens because module_init is really device_initcall; but I didn't use device_initcall because subsys_initcall seems somewhat more appropriate.

All modified files were build tested on today's linux next tree.

Paul.
---

Paul Gortmaker (3):
arm: use subsys_initcall in non-modular pl320 IPC code
arm: include module.h in drivers/bus/omap_l3_smx.c
arm: don't use module_init in non-modular mach-vexpress/spc.c code

 arch/arm/mach-vexpress/spc.c | 2 +-
 drivers/bus/omap_l3_smx.c    | 1 +
 drivers/mailbox/pl320-ipc.c  | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.5.2