vboot: rename symbols for better consistency
Symbols prefixed with vb2_ should be reserved for internal vboot library use. Anything outside of that may choose some other prefix. Here, we choose vboot_ instead. Also, add some documentation to security/vboot/misc.h, which provides headers for a number of different C files. BUG=b:124141368 TEST=Build and deploy to eve TEST=util/lint/checkpatch.pl -g origin/master..HEAD TEST=util/abuild/abuild -B -e -y -c 50 -p none -x TEST=make clean && make test-abuild BRANCH=none Change-Id: I5d9154fd2d5df25ee254bd5ce4a173afaa6588be Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31886 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
725369fd0c
commit
af8471c2b6
@ -23,23 +23,23 @@
|
||||
#include <security/vboot/vbnv.h>
|
||||
#include <security/vboot/vboot_common.h>
|
||||
|
||||
static int vb2_get_recovery_reason_shared_data(void)
|
||||
static int vboot_get_recovery_reason_shared_data(void)
|
||||
{
|
||||
/* Shared data does not exist for Ramstage and Post-CAR stage. */
|
||||
if (ENV_RAMSTAGE || ENV_POSTCAR)
|
||||
return 0;
|
||||
|
||||
struct vb2_shared_data *sd = vb2_get_shared_data();
|
||||
struct vb2_shared_data *sd = vboot_get_shared_data();
|
||||
assert(sd);
|
||||
return sd->recovery_reason;
|
||||
}
|
||||
|
||||
void vb2_save_recovery_reason_vbnv(void)
|
||||
void vboot_save_recovery_reason_vbnv(void)
|
||||
{
|
||||
if (!CONFIG(VBOOT_SAVE_RECOVERY_REASON_ON_REBOOT))
|
||||
return;
|
||||
|
||||
int reason = vb2_get_recovery_reason_shared_data();
|
||||
int reason = vboot_get_recovery_reason_shared_data();
|
||||
if (!reason)
|
||||
return;
|
||||
|
||||
@ -128,9 +128,9 @@ int vboot_check_recovery_request(void)
|
||||
* verification is already complete and no slot was selected
|
||||
* i.e. recovery path was requested.
|
||||
*/
|
||||
if (vboot_possibly_executed() && vb2_logic_executed() &&
|
||||
!vb2_is_slot_selected())
|
||||
return vb2_get_recovery_reason_shared_data();
|
||||
if (vboot_possibly_executed() && vboot_logic_executed() &&
|
||||
!vboot_is_slot_selected())
|
||||
return vboot_get_recovery_reason_shared_data();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user