Skip to content

Commit

Permalink
zephyr: firmware/single_loader: Fix compile warning
Browse files Browse the repository at this point in the history
Fixes an issue of an unused function calling an undefined function

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm committed Dec 7, 2023
1 parent a88e229 commit 2129973
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boot/zephyr/firmware_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions boot/zephyr/single_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2129973

Please sign in to comment.