]> code.ossystems Code Review - bsp/u-boot.git/commit
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)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 12 Oct 2017 20:40:46 +0000 (17:40 -0300)
commitfdb70bf620e2a63f4b82741724a02aaf7c1fcd63
tree0994c09efdba41dea230659f8db2760672ae7704
parent308e7844f819c088f3e10994dd36c2dde93557e3
mx6: sys_proto: Add prototypes for imx6_pcie_toggle() functions

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>
(cherry picked from commit e2000731ae5396d97bae44c404e63d5f7b6e4788)
arch/arm/include/asm/arch-mx6/sys_proto.h