Re: section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Apr 2008, Finn Thain wrote:
Anyone know how to fix this warning?

  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x712c): Section mismatch in reference from the 
function mac_debug_console_write() to the variable 
.init.text:mac_serial_print
The function mac_debug_console_write() references the variable __init 
mac_serial_print.
This is often because mac_debug_console_write lacks a __init 
annotation or the annotation of mac_serial_print is wrong.

mac_serial_print is written in assembler (arch/m68k/kernel/head.S). Should
it be annotated in some way?

Can you move mac_serial_print and serial_putc just before the __INIT?

Alternatively, as mac_serial_print is not used in head.S, perhaps you
can just rewrite it in C (incl. manually inlining serial_putc) and put it in
arch/m68k/mac/debug.c?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux