question about cpm_uart_cpm2.c "Section mismatch in reference from the function cpm_uart_allocbuf"

Guillaume Knispel gknispel at proformatique.com
Wed May 5 23:34:35 EST 2010


On Wed, 5 May 2010 19:19:18 +0800
xiaokun <xiaokun at sf-auto.com> wrote:

> I am using MPC8272ADS_20080623-ltib.iso from freescale
> 
> The Linux Kernel is 2.6.25.
> 
> When I make uImage, the error message is :
> 
> WARNING: vmlinux.o(.text+0x159450): Section mismatch in reference from the function cpm_uart_allocbuf() to the function .init.text:__alloc_bootmem()
> The function cpm_uart_allocbuf() references
> the function __init __alloc_bootmem().
> This is often because cpm_uart_allocbuf lacks a __init
> annotation or the annotation of __alloc_bootmem is wrong.
> 
> 
> It seems that "drivers\serial\cpm_uart\cpm_uart_cpm2.c" needs to be patched.

arghhhh, the "\" heart my eyes!!! ;)

> How to find the patch?

Maybe do a git log on a recent kernel on this file
(I have not checked the results)

> How to search in  the collection of prior postings to this mail list?

Maybe try something like :
http://www.google.com/#q=site%3Alists.ozlabs.org+cpm_uart_allocbuf
(I have not checked the results)


Cheers!
Guillaume Knispel


More information about the Linuxppc-dev mailing list