summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_kernel.c
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-07-31 13:17:08 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-06 15:14:47 +0000
commit90671fa6d2d3d48fab6408c7493be61bcee5868e (patch)
tree73a740440899a86d87fcec45717fba23ea9c2838 /firmware/lib/vboot_kernel.c
parent9c906110972f538ee5753845916ebd1f826f54b6 (diff)
downloadvboot-90671fa6d2d3d48fab6408c7493be61bcee5868e.tar.gz
vboot: rename VbError_t typedef to vb2_error_t
As part of the conversion of error codes from vboot1 to vboot2, replace all instances of VbError_t with vb2_error_t. vboot2 currently uses the int type for return values, but we would like to implement the use of vb2_error_t instead, which is potentially clearer than simply using an int. Existing functions will be converted to use vb2_error_t in a subsequent CL. BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: Iee90d9a1f46bcf5f088e981ba6ddbcf886ff0f18 Signed-off-by: Joel Kitching <kitching@google.com> Cq-Depend: chromium:1728112 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1722914 Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_kernel.c')
-rw-r--r--firmware/lib/vboot_kernel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/lib/vboot_kernel.c b/firmware/lib/vboot_kernel.c
index 5fdc6a4e..96461d9f 100644
--- a/firmware/lib/vboot_kernel.c
+++ b/firmware/lib/vboot_kernel.c
@@ -434,7 +434,7 @@ static int vb2_load_partition(struct vb2_context *ctx,
return VB2_SUCCESS;
}
-VbError_t LoadKernel(struct vb2_context *ctx, LoadKernelParams *params)
+vb2_error_t LoadKernel(struct vb2_context *ctx, LoadKernelParams *params)
{
struct vb2_shared_data *sd = vb2_get_sd(ctx);
struct vb2_workbuf wb;
@@ -442,7 +442,7 @@ VbError_t LoadKernel(struct vb2_context *ctx, LoadKernelParams *params)
VbSharedDataKernelCall *shcall = NULL;
int found_partitions = 0;
uint32_t lowest_version = LOWEST_TPM_VERSION;
- VbError_t retval = VBERROR_UNKNOWN;
+ vb2_error_t retval = VBERROR_UNKNOWN;
int recovery = VB2_RECOVERY_LK_UNSPECIFIED;
int rv;