Re: [PATCH] staging: ram_console: Fix section mismatches

From: Greg KH
Date: Thu Mar 08 2012 - 12:56:49 EST


On Thu, Mar 08, 2012 at 01:08:04AM -0800, Stephen Boyd wrote:
> WARNING: vmlinux.o(.text+0x25d5fc): Section mismatch in reference
> from the function ram_console_driver_probe() to the function
> .init.text:ram_console_init()
> The function ram_console_driver_probe() references
> the function __init ram_console_init().
> This is often because ram_console_driver_probe lacks a __init
> annotation or the annotation of ram_console_init is wrong.
>
> Mark ram_console_driver_probe() as __devinit because it's a probe
> function and propagate the __devinit markings to the __init
> functions the probe calls.

What .config configuration causes this to happen? I don't see this here
in my builds, what am I doing wrong?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/