Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 1 participant 1 message May 14, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Greg,

After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

WARNING: drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.o(.data+0x0): Section mismatch in reference from the variable bcm2835_camera_driver to the function .init.text:bcm2835_mmal_probe() The variable bcm2835_camera_driver references
the function __init bcm2835_mmal_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

WARNING: drivers/staging/vc04_services/bcm2835-camera/bcm2835-v4l2.o(.data+0x0): Section mismatch in reference from the variable bcm2835_camera_driver to the function .init.text:bcm2835_mmal_probe() The variable bcm2835_camera_driver references
the function __init bcm2835_mmal_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

Introduced by commit

4bebb0312ea9 ("staging/bcm2835-camera: Set ourselves up as a platform driver.")

Signature · 2 lines
Cheers,
Stephen Rothwell