Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix:
  mm/slab: fix section mismatch warning
  mm: fix section mismatch warnings
  init/main: use __init_refok to fix section mismatch
  kbuild: introduce __init_refok/__initdata_refok to supress section mismatch warnings
  all-archs: consolidate .data section definition in asm-generic
  all-archs: consolidate .text section definition in asm-generic
  kbuild: add "Section mismatch" warning whitelist for powerpc
  kbuild: make better section mismatch reports on i386, arm and mips
  kbuild: make modpost section warnings clearer
  kconfig: search harder for curses library in check-lxdialog.sh
  kbuild: include limits.h in sumversion.c for PATH_MAX
  powerpc: Fix the MODALIAS generation in modpost for of devices
  • Loading branch information
Linus Torvalds committed May 21, 2007
2 parents 4b85df0 + 38bdc32 commit 080e892
Show file tree
Hide file tree
Showing 39 changed files with 234 additions and 132 deletions.
4 changes: 2 additions & 2 deletions arch/alpha/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SECTIONS

_text = .; /* Text and read-only data */
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand Down Expand Up @@ -89,7 +89,7 @@ SECTIONS

_data = .;
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ SECTIONS
__exception_text_start = .;
*(.exception.text)
__exception_text_end = .;
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
#ifdef CONFIG_MMU
Expand Down Expand Up @@ -158,7 +158,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS

_edata = .;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm26/kernel/vmlinux-arm26-xip.lds.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SECTIONS

.text : { /* Real text segment */
_text = .; /* Text and read-only data */
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT /* FIXME - borrowed from arm32 - check*/
*(.fixup)
Expand Down Expand Up @@ -111,7 +111,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS

*(.init.data)
Expand Down
4 changes: 2 additions & 2 deletions arch/arm26/kernel/vmlinux-arm26.lds.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SECTIONS

.text : { /* Real text segment */
_text = .; /* Text and read-only data */
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand Down Expand Up @@ -106,7 +106,7 @@ SECTIONS
/*
* and the usual data section
*/
*(.data)
DATA_DATA
CONSTRUCTORS

_edata = .;
Expand Down
4 changes: 2 additions & 2 deletions arch/avr32/kernel/vmlinux.lds.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ SECTIONS
. = 0x100;
*(.scall.text)
*(.irq.text)
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
Expand Down Expand Up @@ -112,7 +112,7 @@ SECTIONS

/* And the rest... */
*(.data.rel*)
*(.data)
DATA_DATA
CONSTRUCTORS

_edata = .;
Expand Down
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SECTIONS
{
_text = .;
__stext = .;
*(.text)
TEXT_TEXT
SCHED_TEXT
*(.text.lock)
. = ALIGN(16);
Expand Down Expand Up @@ -200,7 +200,7 @@ SECTIONS
__sdata = .;
. = ALIGN(0x2000);
*(.data.init_task)
*(.data)
DATA_DATA

. = ALIGN(32);
*(.data.cacheline_aligned)
Expand Down
6 changes: 4 additions & 2 deletions arch/frv/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ SECTIONS
_stext = .;
.text : {
*(
.text.start .text .text.*
.text.start .text.*
#ifdef CONFIG_DEBUG_INFO
.init.text
.exit.text
.exitcall.exit
#endif
)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand Down Expand Up @@ -135,7 +136,8 @@ SECTIONS

_sdata = .;
.data : { /* Data */
*(.data .data.*)
DATA_DATA
*(.data.*)
*(.exit.data)
CONSTRUCTORS
}
Expand Down
4 changes: 2 additions & 2 deletions arch/h8300/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SECTIONS
*(.int_redirect)
#endif
__stext = . ;
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
__etext = . ;
Expand Down Expand Up @@ -103,7 +103,7 @@ SECTIONS
. = ALIGN(0x2000) ;
*(.data.init_task)
. = ALIGN(0x4) ;
*(.data)
DATA_DATA
. = ALIGN(0x4) ;
*(.data.*)

Expand Down
4 changes: 2 additions & 2 deletions arch/i386/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SECTIONS

/* read-only */
.text : AT(ADDR(.text) - LOAD_OFFSET) {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
Expand Down Expand Up @@ -74,7 +74,7 @@ SECTIONS
/* writeable */
. = ALIGN(4096);
.data : AT(ADDR(.data) - LOAD_OFFSET) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
} :data

Expand Down
9 changes: 7 additions & 2 deletions arch/ia64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SECTIONS
.text : AT(ADDR(.text) - LOAD_OFFSET)
{
IVT_TEXT
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
Expand Down Expand Up @@ -214,7 +214,12 @@ SECTIONS

data : { } :data
.data : AT(ADDR(.data) - LOAD_OFFSET)
{ *(.data) *(.data1) *(.gnu.linkonce.d*) CONSTRUCTORS }
{
DATA_DATA
*(.data1)
*(.gnu.linkonce.d*)
CONSTRUCTORS
}

. = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
.got : AT(ADDR(.got) - LOAD_OFFSET)
Expand Down
4 changes: 2 additions & 2 deletions arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SECTIONS
_text = .; /* Text and read-only data */
.boot : { *(.boot) } = 0
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand All @@ -50,7 +50,7 @@ SECTIONS
.data : { /* Data */
*(.spu)
*(.spi)
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
4 changes: 2 additions & 2 deletions arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SECTIONS
. = 0x1000;
_text = .; /* Text and read-only data */
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand All @@ -28,7 +28,7 @@ SECTIONS
_etext = .; /* End of text section */

.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
4 changes: 2 additions & 2 deletions arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SECTIONS
_text = .; /* Text and read-only data */
.text : {
*(.head)
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand All @@ -23,7 +23,7 @@ SECTIONS
_etext = .; /* End of text section */

.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
. = ALIGN(16); /* Exception table */
__start___ex_table = .;
Expand Down
4 changes: 2 additions & 2 deletions arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ SECTIONS {
.text : {
_text = .;
_stext = . ;
*(.text)
TEXT_TEXT
SCHED_TEXT
*(.text.lock)

Expand Down Expand Up @@ -133,7 +133,7 @@ SECTIONS {
.data DATA_ADDR : {
. = ALIGN(4);
_sdata = . ;
*(.data)
DATA_DATA
. = ALIGN(8192) ;
*(.data.init_task)
_edata = . ;
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SECTIONS
/* read-only */
_text = .; /* Text and read-only data */
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand Down Expand Up @@ -62,7 +62,7 @@ SECTIONS
. = ALIGN(_PAGE_SIZE);
*(.data.init_task)

*(.data)
DATA_DATA

CONSTRUCTORS
}
Expand Down
4 changes: 2 additions & 2 deletions arch/parisc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SECTIONS

_text = .; /* Text and read-only data */
.text ALIGN(16) : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.text.do_softirq)
Expand Down Expand Up @@ -91,7 +91,7 @@ SECTIONS

. = ALIGN(L1_CACHE_BYTES);
.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
5 changes: 3 additions & 2 deletions arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ SECTIONS
/* Text and gots */
.text : {
_text = .;
*(.text .text.*)
*(.text.*)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
Expand Down Expand Up @@ -167,7 +168,7 @@ SECTIONS
#ifdef CONFIG_PPC32
.data :
{
*(.data)
DATA_DATA
*(.sdata)
*(.got.plt) *(.got)
}
Expand Down
4 changes: 2 additions & 2 deletions arch/ppc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SECTIONS
.text :
{
_text = .;
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand Down Expand Up @@ -67,7 +67,7 @@ SECTIONS
. = ALIGN(4096);
.data :
{
*(.data)
DATA_DATA
*(.data1)
*(.sdata)
*(.sdata2)
Expand Down
4 changes: 2 additions & 2 deletions arch/s390/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SECTIONS
. = 0x00000000;
_text = .; /* Text and read-only data */
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
Expand All @@ -48,7 +48,7 @@ SECTIONS
BUG_TABLE

.data : { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
4 changes: 2 additions & 2 deletions arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SECTIONS
*(.empty_zero_page)
} = 0
.text : {
*(.text)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
*(.fixup)
Expand All @@ -41,7 +41,7 @@ SECTIONS
BUG_TABLE

.data : { /* Data */
*(.data)
DATA_DATA

/* Align the initial ramdisk image (INITRD) on page boundaries. */
. = ALIGN(PAGE_SIZE);
Expand Down
4 changes: 2 additions & 2 deletions arch/sh64/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SECTIONS
} = 0

.text : C_PHYS(.text) {
*(.text)
TEXT_TEXT
*(.text64)
*(.text..SHmedia32)
SCHED_TEXT
Expand All @@ -78,7 +78,7 @@ SECTIONS
_etext = .; /* End of text section */

.data : C_PHYS(.data) { /* Data */
*(.data)
DATA_DATA
CONSTRUCTORS
}

Expand Down
Loading

0 comments on commit 080e892

Please sign in to comment.