From 2b1c4b0591be24d412b0fc72024a628c751e2816 Mon Sep 17 00:00:00 2001 From: xorptr Date: Tue, 17 Mar 2026 17:03:01 -0700 Subject: [PATCH] Remove duplicate declaration for `libhoth_print_erot_console`. Remove unused headers in dfu_check --- protocol/BUILD | 1 - protocol/dfu_check.c | 2 -- protocol/dfu_check.h | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/protocol/BUILD b/protocol/BUILD index 1bf1f94..564598f 100644 --- a/protocol/BUILD +++ b/protocol/BUILD @@ -509,7 +509,6 @@ cc_library( ], deps = [ ":console", - ":host_cmd", ":opentitan_version", "//transports:libhoth_device", ], diff --git a/protocol/dfu_check.c b/protocol/dfu_check.c index 698ca5e..d586938 100644 --- a/protocol/dfu_check.c +++ b/protocol/dfu_check.c @@ -27,9 +27,7 @@ #include #include -#include "opentitan_version.h" #include "protocol/console.h" -#include "protocol/host_cmd.h" #include "protocol/opentitan_version.h" void libhoth_print_boot_log( diff --git a/protocol/dfu_check.h b/protocol/dfu_check.h index 8d702ff..7d307e3 100644 --- a/protocol/dfu_check.h +++ b/protocol/dfu_check.h @@ -18,8 +18,8 @@ #include #include -#include "protocol/console.h" #include "protocol/opentitan_version.h" +#include "transports/libhoth_device.h" #ifdef __cplusplus extern "C" { @@ -34,7 +34,6 @@ void libhoth_print_boot_log( const struct opentitan_image_version* desired_app); void libhoth_print_dfu_error(struct libhoth_device* const dev, struct opentitan_get_version_resp* resp, int err); -void libhoth_print_erot_console(struct libhoth_device* const dev); #ifdef __cplusplus }