On 05/18/14 16:06, Hans de Goede wrote: > Hi Corentin, > > While building the sunxi-devel branch of my personal repo, to > which I've added your sunxi-ss.c driver, I got the following warning: > > WARNING: vmlinux.o(.data+0xa1654): Section mismatch in reference from the > variable sunxi_ss_driver to the function .init.text:sunxi_ss_probe() > The variable sunxi_ss_driver references > the function __init sunxi_ss_probe() > If the reference is valid then annotate the > variable with __init* or __refdata (see linux/init.h) or name the variable: > *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console > > You should drop the __init annotation of the sunxi_ss_probe() function, this > will fix this warning. > > Thanks, > > Hans >
Hello Thanks for all your reviews. I have fixed all yours remarks and added CONFIG_DEBUG_SECTION_MISMATCH to my config. Regards -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.