[PATCH] gpio/omap: Fix section warning for omap_mpuio_alloc_gc()

Grant Likely grant.likely at secretlab.ca
Mon Mar 12 13:45:03 EDT 2012


On Tue, 06 Mar 2012 15:55:47 -0800, Kevin Hilman <khilman at ti.com> wrote:
> Tony Lindgren <tony at atomide.com> writes:
> 
> > From: Tony Lindgren <tony at atomide.com>
> > Date: Mon, 5 Mar 2012 15:32:38 -0800
> > Subject: [PATCH] gpio/omap: Fix section warning for omap_mpuio_alloc_gc()
> >
> > Make omap_mpuio_alloc_gc() __devinit as omap_gpio_chip_init()
> > is __devinit. Otherwise we get:
> >
> > WARNING: vmlinux.o(.devinit.text+0xa10): Section mismatch in reference
> > from the function omap_gpio_chip_init() to the function .init.text:omap_mpuio_alloc_gc()
> > The function __devinit omap_gpio_chip_init() references
> > a function __init omap_mpuio_alloc_gc().
> > If omap_mpuio_alloc_gc is only used by omap_gpio_chip_init then
> > annotate omap_mpuio_alloc_gc with a matching annotation.
> >
> > Signed-off-by: Tony Lindgren <tony at atomide.com>
> 
> Acked-by: Kevin Hilman <khilman at ti.com>

applied, thx.

g.



More information about the linux-arm-kernel mailing list