Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1310340
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mtd: mtk-nor: Drop bogus __init from mtk_nor_init() |
| Date | 2016-01-15 19:10 +0100 |
| Message-ID | <qRgYV-1jy-9@gated-at.bofh.it> (permalink) |
| References | <qRcVk-6OR-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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@linux-m68k.org> > --- > Presumably this went unnoticed because some versions of gcc inline > mtk_nor_init()? Pushed to l2-mtd.git. Thanks!
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] mtd: mtk-nor: Drop bogus __init from mtk_nor_init() Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-15 14:50 +0100 Re: [PATCH] mtd: mtk-nor: Drop bogus __init from mtk_nor_init() Brian Norris <computersforpeace@gmail.com> - 2016-01-15 19:10 +0100
csiph-web