Skip to content

Commit

Permalink
x86_64: fix section mismatch warnings in tce
Browse files Browse the repository at this point in the history
Fix the following two section mismatch warnings:

WARNING: vmlinux.o(.text+0x1ce84): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table')
WARNING: vmlinux.o(.text+0x1d04d): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder')

In both cases the functions was used only from __init
context so mark them __init.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Sam Ravnborg authored and Linus Torvalds committed Jul 26, 2007
1 parent ddcc305 commit 252c01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86_64/kernel/tce.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int build_tce_table(struct pci_dev *dev, void __iomem *bbar)
return ret;
}

void* alloc_tce_table(void)
void * __init alloc_tce_table(void)
{
unsigned int size;

Expand All @@ -175,7 +175,7 @@ void* alloc_tce_table(void)
return __alloc_bootmem_low(size, size, 0);
}

void free_tce_table(void *tbl)
void __init free_tce_table(void *tbl)
{
unsigned int size;

Expand Down

0 comments on commit 252c01d

Please sign in to comment.