Re: mm section mismatches

Andrew Morton
2006-10-09T19:15:50Z

On Mon, 9 Oct 2006 11:06:00 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:

> On Sat, 7 Oct 2006, Randy Dunlap wrote:
>
> > > > > WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0xc016ba8e) and 'kmem_flagcheck'
> > >
> > > This is non-init set_up_list3s() referring to __initdata initkmem_list3[]
> > > (Hi, Pekka and Christoph!)
> >
> > I can't repro that one either, so I'll let one of (...) fix it.
>
>
> set_up_list3s is only called during the bootstrap of the slab allocator.
> So this is fine.

Except it'll generate a scary warning for evermore.

It'd be nice to find some hack to make the warning go away, but I can't
think of one.

Maybe create a new section just for this purpose, put the function in that.