Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 5, 2019 – Nov 7, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 10 lines · Stephen Rothwell

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

Quoted 5 lines

(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