Skip to content

clean up page aligned data and bss sections

Tim Abbott linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 6 repliesIn review
  2. v114 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15Add new macros for page-aligned data and bss sections.include/asm-generic/vmlinux.lds.h include/linux/linkage.h+17 -01 reply
2/15sh: Use macros for .bss.page_aligned section.arch/sh/kernel/irq.c arch/sh/kernel/vmlinux_32.lds.S arch/sh/kernel/vmlinux_64.lds.S+4 -60 replies
3/15mn10300: Use macros for .bss.page_aligned section.arch/mn10300/kernel/vmlinux.lds.S+1 -11 reply
4/15xtensa: Use macros for .bss.page_aligned section.arch/xtensa/kernel/head.S arch/xtensa/kernel/vmlinux.lds.S+2 -20 replies
5/15x86: Use macros for .bss.page_aligned section.arch/x86/kernel/head_32.S arch/x86/kernel/head_64.S arch/x86/kernel/vmlinux_32.lds.S +1 more+4 -40 replies
6/15alpha: Use macros for .data.page_aligned.arch/alpha/kernel/vmlinux.lds.S+1 -50 replies
7/15avr32: Use standard macros for .data.page_aligned section.arch/avr32/kernel/vmlinux.lds.S arch/avr32/mm/init.c+2 -50 replies
8/15sh: Use macros for .data.page_aligned section.arch/sh/kernel/vmlinux_32.lds.S arch/sh/kernel/vmlinux_64.lds.S+2 -40 replies
9/15s390: Use macros for .data.page_aligned.arch/s390/kernel/vdso.c arch/s390/kernel/vdso32/vdso32_wrapper.S arch/s390/kernel/vdso64/vdso64_wrapper.S +1 more+6 -80 replies
10/15powerpc: Remove unused __page_aligned macro.arch/powerpc/include/asm/page_64.h+0 -80 replies
11/15powerpc: share .data output section definition between 32 and 64 bits.arch/powerpc/kernel/vmlinux.lds.S+3 -40 replies
12/15powerpc: Use macros for .data.page_aligned section.arch/powerpc/kernel/vdso.c arch/powerpc/kernel/vdso32/vdso32_wrapper.S arch/powerpc/kernel/vdso64/vdso64_wrapper.S +1 more+6 -81 reply
13/15mn10300: Drop unused .data.idt section.arch/mn10300/kernel/vmlinux.lds.S+0 -31 reply
14/15x86: Use section .data.page_aligned for the idt_table.arch/x86/kernel/traps.c arch/x86/kernel/vmlinux_32.lds.S+2 -50 replies
15/15x86: Use macros for .data.page_aligned.arch/x86/kernel/head_32.S arch/x86/kernel/vmlinux_32.lds.S arch/x86/kernel/vmlinux_64.lds.S+3 -110 replies

Reviews trailers per patch

6 of 15 patches have a Reviewed-by or Acked-by.

PatchPaul MundtCyrill GorcunovHaavard SkinnemoenDavid Howells
1/15A-b
2/15A-b
3/15A-b
4/15
5/15
6/15
7/15A-b
8/15A-b
9/15
10/15
11/15
12/15
13/15A-b A-b
14/15
15/15

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

Read the v2 thread

Cover letter [PATCH v2 00/15] clean up page aligned data and bss sections

Sam,

Here's a new version of the page-aligned section cleanup patch series. Changes since last version include:

- added missing semicolons for ALIGN() directives in the macro definitions in PATCH 1/14.
- fixed a bug in the powerpc patch where the DATA_PAGE_ALIGNED was inside a CONFIG_PPC32 in PATCH 11/14 (which is now 2 patches)

---

This patch series add new macros for .data.page_aligned and .bss.page_aligned, and converts the various architectures to use them. It also eliminates the few remaining uses of .data.idt by replacing them with references to .data.page_aligned.

This patch series is a bunch of cleanup in preparation for being able to change the names of the .data.page_aligned and .bss.page_aligned sections to be compatabible with -ffunction-sections -fdata-sections.

The x86 patches are on top of the your commit in the x86/kbuild of linux-tip entitled:

    x86: beautify vmlinux_64.lds.S

as requested by Linus.

Tim Abbott (15):
Add new macros for page-aligned data and bss sections.
sh: Use macros for .bss.page_aligned section.
mn10300: Use macros for .bss.page_aligned section.
xtensa: Use macros for .bss.page_aligned section.
x86: Use macros for .bss.page_aligned section.
alpha: Use macros for .data.page_aligned.
avr32: Use standard macros for .data.page_aligned section.
sh: Use macros for .data.page_aligned section.
s390: Use macros for .data.page_aligned.
powerpc: Remove unused __page_aligned macro.
powerpc: share .data output section definition between 32 and 64
bits.
powerpc: Use macros for .data.page_aligned section.
mn10300: Drop unused .data.idt section.
x86: Use section .data.page_aligned for the idt_table.
x86: Use macros for .data.page_aligned.

 arch/alpha/kernel/vmlinux.lds.S             |    6 +-----
 arch/avr32/kernel/vmlinux.lds.S             |    3 +--
 arch/avr32/mm/init.c                        |    4 +---
 arch/mn10300/kernel/vmlinux.lds.S           |    5 +----
 arch/powerpc/include/asm/page_64.h          |    8 --------
 arch/powerpc/kernel/vdso.c                  |    2 +-
 arch/powerpc/kernel/vdso32/vdso32_wrapper.S |    3 ++-
 arch/powerpc/kernel/vdso64/vdso64_wrapper.S |    3 ++-
 arch/powerpc/kernel/vmlinux.lds.S           |   13 ++++---------
 arch/s390/kernel/vdso.c                     |    2 +-
 arch/s390/kernel/vdso32/vdso32_wrapper.S    |    3 ++-
 arch/s390/kernel/vdso64/vdso64_wrapper.S    |    3 ++-
 arch/s390/kernel/vmlinux.lds.S              |    6 +-----
 arch/sh/kernel/irq.c                        |    6 ++----
 arch/sh/kernel/vmlinux_32.lds.S             |    5 ++---
 arch/sh/kernel/vmlinux_64.lds.S             |    5 ++---
 arch/x86/kernel/head_32.S                   |    4 ++--
 arch/x86/kernel/head_64.S                   |    2 +-
 arch/x86/kernel/traps.c                     |    6 ++----
 arch/x86/kernel/vmlinux_32.lds.S            |    9 ++-------
 arch/x86/kernel/vmlinux_64.lds.S            |    8 ++------
 arch/xtensa/kernel/head.S                   |    2 +-
 arch/xtensa/kernel/vmlinux.lds.S            |    2 +-
 include/asm-generic/vmlinux.lds.h           |    8 ++++++++
 include/linux/linkage.h                     |    9 +++++++++
 25 files changed, 53 insertions(+), 74 deletions(-)