summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authoredisonhello <edisonhello@google.com>2021-09-06 16:05:19 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-17 10:22:48 +0000
commit8ee52d26e27a5423e1bca1c427db4209c08f1899 (patch)
treebfd7fa3d2b895242d1dcf4437e14d2d222a2de3d /firmware
parent1a7c57ce7fa5aa1c8cdc6bffffbfe3f8dbece664 (diff)
downloadvboot-8ee52d26e27a5423e1bca1c427db4209c08f1899.tar.gz
vboot: Remove vb2ex_diag_storage_test_control
Remove function vb2ex_diag_storage_test_control, after UI code centralize, since this function is not used anymore in vboot. Remove enum vb2_diag_storage_test, which is for the parameter of vb2ex_diag_storage_test_control. BUG=b:172339016 TEST=DEBUG=1 make -j test_setup && make -j run_test_scripts BRANCH=none Cq-Depend: chromium:3142697 Signed-off-by: edisonhello <edisonhello@google.com> Change-Id: Ie9cdeecd78973074cf363bf41bd37244a3b6d1af Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3143813 Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/2lib/2stub.c6
-rw-r--r--firmware/2lib/include/2api.h11
2 files changed, 0 insertions, 17 deletions
diff --git a/firmware/2lib/2stub.c b/firmware/2lib/2stub.c
index 47fb2df7..8d3fcd06 100644
--- a/firmware/2lib/2stub.c
+++ b/firmware/2lib/2stub.c
@@ -201,12 +201,6 @@ vb2_error_t vb2ex_diag_get_storage_test_log(const char **out)
}
__attribute__((weak))
-vb2_error_t vb2ex_diag_storage_test_control(enum vb2_diag_storage_test ops)
-{
- return VB2_SUCCESS;
-}
-
-__attribute__((weak))
vb2_error_t vb2ex_diag_memory_quick_test(int reset, const char **out)
{
*out = "mock";
diff --git a/firmware/2lib/include/2api.h b/firmware/2lib/include/2api.h
index 521cae8f..1f9d70f9 100644
--- a/firmware/2lib/include/2api.h
+++ b/firmware/2lib/include/2api.h
@@ -1708,17 +1708,6 @@ vb2_error_t vb2ex_diag_memory_quick_test(int reset, const char **out);
vb2_error_t vb2ex_diag_memory_full_test(int reset, const char **out);
/*****************************************************************************/
-/* Functions for diagnostics control. */
-
-enum vb2_diag_storage_test {
- VB2_DIAG_STORAGE_TEST_STOP = 0,
- VB2_DIAG_STORAGE_TEST_SHORT,
- VB2_DIAG_STORAGE_TEST_EXTENDED,
-};
-
-vb2_error_t vb2ex_diag_storage_test_control(enum vb2_diag_storage_test ops);
-
-/*****************************************************************************/
/* Timer. */
/**