Commit cc9e00c0 authored by Ye Li's avatar Ye Li

MLK-18226 imx8: Fix build warning when CONFIG_ARCH_MISC_INIT is not set

When CONFIG_ARCH_MISC_INIT is disabled, the static function
acquire_buildinfo is defined but not used. Fix this build warning.
Signed-off-by: 's avatarYe Li <ye.li@nxp.com>
Reviewed-by: 's avatarPeng Fan <peng.fan@nxp.com>
parent 300f65b3
......@@ -645,6 +645,7 @@ bool is_usb_boot(void)
return get_boot_device() == USB_BOOT;
}
#if defined(CONFIG_ARCH_MISC_INIT)
#define FSL_SIP_BUILDINFO 0xC2000003
#define FSL_SIP_BUILDINFO_GET_COMMITHASH 0x00
extern uint32_t _end_ofs;
......@@ -710,7 +711,6 @@ static void acquire_buildinfo(void)
sc_commit, seco_commit, mkimage_commit, (char *)&atf_commit, U_BOOT_VERSION);
}
#if defined(CONFIG_ARCH_MISC_INIT)
int arch_misc_init(void)
{
acquire_buildinfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment