Re: linux-next: build warning after merge of the gpio tree

From: Linus Walleij
Date: Thu Nov 07 2019 - 03:35:42 EST


On Tue, Nov 5, 2019 at 7:44 AM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:

> After merging the gpio tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
>
> WARNING: vmlinux.o(.data+0xbd3f4): Section mismatch in reference from the variable bcm_iproc_gpio_driver to the (unknown reference) .init.rodata:(unknown)
> The variable bcm_iproc_gpio_driver references
> the (unknown reference) __initconst (unknown)
> 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
>
> (and similar for x86_64 allmodconfig)
>
> Introduced by commit
>
> 6a41b6c5fc20 ("gpio: Add xgs-iproc driver")

Mark Brown finally hunted this down and fixed. It should be
fine in my for-next branch now.

Yours,
Linus Walleij