diff options
| author | Mark Brown <[email protected]> | 2019-11-05 12:49:15 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2019-11-07 07:53:51 +0000 |
| commit | 5d682fa3d8943c19a632ebeaf70e8b9e41c78a5b (patch) | |
| tree | 01a4e532cf95d2a94c9578a137665d39feab9c07 /drivers/gpio/gpio-stmpe.c | |
| parent | gpiolib: Switch order of valid mask and hw init (diff) | |
| download | kernel-5d682fa3d8943c19a632ebeaf70e8b9e41c78a5b.tar.gz kernel-5d682fa3d8943c19a632ebeaf70e8b9e41c78a5b.zip | |
gpio: xgs-iproc: Fix section mismatch on device tree match table
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.
Fixes: 6a41b6c5fc20 ("gpio: Add xgs-iproc driver")
Signed-off-by: Mark Brown <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
Reviewed-by: Yoshihiro Shimoda <[email protected]>
Tested-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-stmpe.c')
0 files changed, 0 insertions, 0 deletions
