efi_loader: Make tcg2_uninit() static
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 30 Oct 2024 20:40:59 +0000 (22:40 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 31 Oct 2024 05:05:08 +0000 (06:05 +0100)
This function is only used locally, so make it static and quiesce
the W=1 warning

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c

index 45f451e..866a529 100644 (file)
@@ -789,7 +789,7 @@ static const struct efi_tcg2_protocol efi_tcg2_protocol = {
 /**
  * tcg2_uninit - remove the final event table and free efi memory on failures
  */
-void tcg2_uninit(void)
+static void tcg2_uninit(void)
 {
        efi_status_t ret;