]> git.baikalelectronics.ru Git - uboot.git/commitdiff
mx6: sys_proto: Add prototypes for imx6_pcie_toggle() functions
authorDiego Dorta <diego.dorta@nxp.com>
Thu, 5 Oct 2017 12:15:58 +0000 (09:15 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Oct 2017 16:00:18 +0000 (18:00 +0200)
When compiling with W=1 errors are observed:

drivers/pci/pcie_imx.c:517:12: warning: no previous prototype for ‘imx6_pcie_toggle_power’ [-Wmissing-prototypes] __weak int imx6_pcie_toggle_power(void)

drivers/pci/pcie_imx.c:528:12: warning: no previous prototype for ‘imx6_pcie_toggle_reset’ [-Wmissing-prototypes] __weak int imx6_pcie_toggle_reset(void)

Remove these warnings by adding the functions prototypes on arch-mx6/sys_proto.

Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
arch/arm/include/asm/arch-mx6/sys_proto.h

index ba739432606c10b061f7a6d21b662c3625c88f05..b22a7a0f8b76dcc41f7bc8d8565a6eb57b75954e 100644 (file)
@@ -13,3 +13,6 @@
 
 #define is_usbotg_phy_active(void) (!(readl(USB_PHY0_BASE_ADDR + USBPHY_PWD) & \
                                   USBPHY_PWD_RXPWDRX))
+
+int imx6_pcie_toggle_power(void);
+int imx6_pcie_toggle_reset(void);