MLK-18953 PCI: imx: fix the building warning
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 14 Jan 2019 12:27:06 +0000 (17:57 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit746774bde2f43ad4d6326f490a108277a139c1cb
tree57691a105183e491d0b3c62acd9d45446c93345c
parentcab95124d360aa6eb600e0f7fddc97ecca093e68
MLK-18953 PCI: imx: fix the building warning

- warning: ‘retries’ may be used uninitialized in this function
- WARNING: vmlinux.o(.data+0x5d2d8): Section mismatch in reference from the
variable imx_pcie_driver to the function .init.text:imx_pcie_probe()

The variable imx_pcie_driver references the function __init
imx_pcie_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

Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
rebase on v4.19
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/pci/controller/dwc/pci-imx6.c