Skip to content

Commit

Permalink
[POWERPC] Fix section mismatches in udbg_adb.c
Browse files Browse the repository at this point in the history
The functions are only called from __init functions.

WARNING: vmlinux.o(.text+0x45ed0): Section mismatch: reference to .init.text:.btext_find_display (between '.udbg_adb_init_early' and '.udbg_adb_init')
WARNING: vmlinux.o(.text+0x45f9c): Section mismatch: reference to .init.text:.btext_find_display (between '.udbg_adb_init' and '.udbg_adb_getc_poll')
WARNING: vmlinux.o(.text+0x46000): Section mismatch: reference to .init.text:.find_via_pmu (between '.udbg_adb_init' and '.udbg_adb_getc_poll')

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Aug 17, 2007
1 parent 109b60f commit 124d795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/powermac/udbg_adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static void udbg_adb_putc(char c)
return udbg_adb_old_putc(c);
}

void udbg_adb_init_early(void)
void __init udbg_adb_init_early(void)
{
#ifdef CONFIG_BOOTX_TEXT
if (btext_find_display(1) == 0) {
Expand All @@ -159,7 +159,7 @@ void udbg_adb_init_early(void)
#endif
}

int udbg_adb_init(int force_btext)
int __init udbg_adb_init(int force_btext)
{
struct device_node *np;

Expand Down

0 comments on commit 124d795

Please sign in to comment.