Skip to content

cleanup old init and refok sections

Tim Abbott lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8frv: Remove unused header asm/init.h.arch/frv/include/asm/init.h+0 -121 reply
2/8frv: Use __INIT macro instead of .text.init.arch/frv/kernel/head-mmu-fr451.S arch/frv/kernel/head-uc-fr401.S arch/frv/kernel/head-uc-fr451.S +1 more+8 -41 reply
3/8arm: Use __INIT macro instead of .text.init.arch/arm/mm/proc-v6.S arch/arm/mm/proc-v7.S arch/arm/mm/tlb-v6.S +1 more+8 -42 replies
4/8powerpc: Use TEXT_TEXT macro in linker script.arch/powerpc/kernel/vmlinux.lds.S+2 -11 reply
5/8powerpc: Use __REF macro instead of old .text.init.refok.arch/powerpc/include/asm/ppc_asm.h+3 -21 reply
6/8sh: Use __INIT macro instead of .text.init.arch/sh/kernel/cpu/sh5/entry.S+3 -22 replies
7/8sparc: cleanup references to deprecated .text.init* sections.arch/sparc/kernel/head_32.S arch/sparc/kernel/head_64.S+2 -21 reply
8/8Remove unused support code for refok sections.include/asm-generic/vmlinux.lds.h include/linux/init.h scripts/mod/modpost.c+0 -291 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchSam RavnborgRussell KingPaul Mundt
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b A-b
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/8] cleanup old init and refok sections

Sam,

This patch series cleans up the use of the deprecated section names .text.init, .text.init.refok, .exit.text.refok, and .data.init.refok in the Linux kernel, replacing them with the appropriate macros that reference the current names for these sections.

The long-term goal here is to be able to change the kernel's magic section names to those that are compatible with -ffunction-sections -fdata-sections. Doing so requires renaming all magic sections with names of the form ".text.foo" or ".data.bar".

--

Tim Abbott (8):
frv: Remove unused header asm/init.h.
frv: Use __INIT macro instead of .text.init.
arm: Use __INIT macro instead of .text.init.
powerpc: Use TEXT_TEXT macro in linker script.
powerpc: Use __REF macro instead of old .text.init.refok.
sh: Use __INIT macro instead of .text.init.
sparc: cleanup references to deprecated .text.init* sections. Remove unused support code for refok sections.

 arch/arm/mm/proc-v6.S              |    3 ++-
 arch/arm/mm/proc-v7.S              |    3 ++-
 arch/arm/mm/tlb-v6.S               |    3 ++-
 arch/arm/mm/tlb-v7.S               |    3 ++-
 arch/frv/include/asm/init.h        |   12 ------------
 arch/frv/kernel/head-mmu-fr451.S   |    3 ++-
 arch/frv/kernel/head-uc-fr401.S    |    3 ++-
 arch/frv/kernel/head-uc-fr451.S    |    3 ++-
 arch/frv/kernel/head-uc-fr555.S    |    3 ++-
 arch/powerpc/include/asm/ppc_asm.h |    5 +++--
 arch/powerpc/kernel/vmlinux.lds.S  |    3 ++-
 arch/sh/kernel/cpu/sh5/entry.S     |    5 +++--
 arch/sparc/kernel/head_32.S        |    2 +-
 arch/sparc/kernel/head_64.S        |    2 +-
 include/asm-generic/vmlinux.lds.h  |    3 ---
 include/linux/init.h               |    8 --------
 scripts/mod/modpost.c              |   18 ------------------
 17 files changed, 26 insertions(+), 56 deletions(-)
 delete mode 100644 arch/frv/include/asm/init.h