Skip to content

RFC vmlinux.lds.h clean-ups

Rob Herring linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4irqchip: align irqchip OF match table section namingdrivers/irqchip/irqchip.c include/asm-generic/vmlinux.lds.h+5 -50 replies
2/4ARM: align cpu_method_of_table namingarch/arm/kernel/devtree.c include/asm-generic/vmlinux.lds.h+9 -60 replies
3/4vmlinuz.lds: define OF table sections with macrosinclude/asm-generic/vmlinux.lds.h+14 -440 replies
4/4vmlinux.lds: define conditional sections with macrosinclude/asm-generic/vmlinux.lds.h+27 -550 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] vmlinux.lds.h clean-ups

From: Rob Herring <[email protected]>

Several DeviceTree related sections have been added recently to enable early DT initialization calls. I have the need to add yet another one in order to do a DT based earlycon. Since each section follows the same pattern, this seemed like a good opportunity for some clean-up. So this series creates a common macro to define these sections. with this adding any new OF table section is a 2 line change.

Each section ends with a zeroed struct of_device_id (except cpu_method). Right now there is an end section and a dummy variable to create the end marker. Really, we just need padding here, but I haven't come up with a way for the linker script to get the struct size.

The last patch extends the same concept to another common pattern for section definitons. There's still others which could be easily converted also, but I'm looking for feedback on this approach before proceeding any further.

Rob

Rob Herring (4):
irqchip: align irqchip OF match table section naming
ARM: align cpu_method_of_table naming vmlinuz.lds: define OF table sections with macros vmlinux.lds: define conditional sections with macros

 arch/arm/kernel/devtree.c         |  11 +--
 drivers/irqchip/irqchip.c         |   6 +-
 include/asm-generic/vmlinux.lds.h | 142 +++++++++++---------------------------
 3 files changed, 52 insertions(+), 107 deletions(-)
Signature · 1 line
1.8.3.2