From 621803cad165d2427bde55488ace90a4584e4dfd Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Wed, 20 Aug 2025 18:15:19 +0200 Subject: [PATCH 1/2] Remove extra newline Signed-off-by: Tobias Heider --- stub.c | 1 - 1 file changed, 1 deletion(-) diff --git a/stub.c b/stub.c index 1d26292..2159cdb 100644 --- a/stub.c +++ b/stub.c @@ -161,7 +161,6 @@ static EFI_STATUS run(EFI_HANDLE image) { if (err != EFI_SUCCESS) return err; - /* Let's measure the passed kernel command line into the TPM. Note that this possibly * duplicates what we already did in the boot menu, if that was already * used. However, since we want the boot menu to support an EFI binary, and want to From cd9768f6a1ca7fca27b2fb0c970bd4ed5b3975dc Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Wed, 20 Aug 2025 18:39:08 +0200 Subject: [PATCH 2/2] Remove more unused compat entry point Signed-off-by: Tobias Heider --- linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux.c b/linux.c index 7274f06..77f1d7e 100644 --- a/linux.c +++ b/linux.c @@ -28,7 +28,7 @@ EFI_STATUS linux_exec( const struct iovec *initrd) { size_t kernel_size_in_memory = 0; - uint32_t compat_entry_point, entry_point; + uint32_t entry_point; uint64_t image_base; EFI_STATUS err; @@ -36,7 +36,7 @@ EFI_STATUS linux_exec( assert(iovec_is_set(kernel)); assert(iovec_is_valid(initrd)); - err = pe_kernel_info(kernel->iov_base, &entry_point, &compat_entry_point, &image_base, &kernel_size_in_memory); + err = pe_kernel_info(kernel->iov_base, &entry_point, &image_base, &kernel_size_in_memory); if (err != EFI_SUCCESS) return log_error_status(err, "Bad kernel image: %m");