[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160115180149.GT109450@google.com>
Date: Fri, 15 Jan 2016 10:01:49 -0800
From: Brian Norris <computersforpeace@...il.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: David Woodhouse <dwmw2@...radead.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Bayi Cheng <bayi.cheng@...iatek.com>,
linux-mtd@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: mtk-nor: Drop bogus __init from mtk_nor_init()
On Fri, Jan 15, 2016 at 02:46:29PM +0100, Geert Uytterhoeven wrote:
> WARNING: drivers/mtd/spi-nor/mtk-quadspi.o(.text+0x77e): Section mismatch in reference from the function mtk_nor_drv_probe() to the function .init.text:mtk_nor_init()
> The function mtk_nor_drv_probe() references
> the function __init mtk_nor_init().
> This is often because mtk_nor_drv_probe lacks a __init
> annotation or the annotation of mtk_nor_init is wrong.
>
> Drop the bogus __init from mtk_nor_init() to kill this warning.
>
> Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
> ---
> Presumably this went unnoticed because some versions of gcc inline
> mtk_nor_init()?
Pushed to l2-mtd.git. Thanks!
Powered by blists - more mailing lists