On Tue, Nov 5, 2019 at 1:49 PM Mark Brown <broonie@xxxxxxxxxx> wrote: > The table of devicetree identifiers is annotated as __initconst > indicating that it can be discarded after kernel boot but it is > referenced from the driver struct which has no init annotation leading > to a linker warning: > > WARNING: vmlinux.o(.data+0x82d58): Section mismatch in reference from the variable bcm_iproc_gpio_driver to the variable .init.rodata:bcm_iproc_gpio_of_match > The variable bcm_iproc_gpio_driver references > the variable __initconst bcm_iproc_gpio_of_match > > Since drivers can be probed after init the lack of annotation on the > driver struct is correct so remove the annotation from the match table. > > Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> Oh thanks a LOT Mark! Hurriedly applied this with the ACKs and pushed out so linux-next starts working. Quite interesting bug, I guess I'll comment on it in the other thread. Yours, Linus Walleij