Commit 21299739 authored by Jamie McCrae's avatar Jamie McCrae Committed by Jamie
Browse files

zephyr: firmware/single_loader: Fix compile warning

Fixes an issue of an unused function calling an undefined function

Signed-off-by: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent a88e2293
Loading
Loading
Loading
Loading
+2 −0
Changes for boot/zephyr/firmware_loader.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ boot_image_validate(const struct flash_area *fa_p,
}
#endif /* MCUBOOT_VALIDATE_PRIMARY_SLOT || MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE*/

#if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE)
inline static fih_ret
boot_image_validate_once(const struct flash_area *fa_p,
                    struct image_header *hdr)
@@ -92,6 +93,7 @@ boot_image_validate_once(const struct flash_area *fa_p,
    }
    FIH_RET(FIH_SUCCESS);
}
#endif

/**
 * Validates that an image in a slot is OK to boot.
+2 −0
Changes for boot/zephyr/single_loader.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ boot_image_validate(const struct flash_area *fa_p,
}
#endif /* MCUBOOT_VALIDATE_PRIMARY_SLOT || MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE*/

#if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE)
inline static fih_ret
boot_image_validate_once(const struct flash_area *fa_p,
                    struct image_header *hdr)
@@ -88,6 +89,7 @@ boot_image_validate_once(const struct flash_area *fa_p,
    }
    FIH_RET(FIH_SUCCESS);
}
#endif

/**
 * Gather information on image and prepare for booting.