From: Ingo Molnar <mingo@kernel.org>
To: Thorsten Blum <blum@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Nicolas Schier <n.schier@fritz.com>,
Ard Biesheuvel <ardb@kernel.org>,
"Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
Jan Stancek <jstancek@redhat.com>,
"Mike Rapoport (Microsoft)" <rppt@kernel.org>,
"Pratyush Yadav (Google)" <pratyush@kernel.org>,
Tom Lendacky <thomas.lendacky@amd.com>,
Ryan Roberts <ryan.roberts@arm.com>,
Andreas Larsson <andreas@gaisler.com>,
Andrew Morton <akpm@linux-foundation.org>,
Kevin Brodsky <kevin.brodsky@arm.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/4] x86/boot/compressed: Remove unused variables in EFI helpers
Date: Tue, 10 Nov 2026 09:14:50 +0100 [thread overview]
Message-ID: <avLSetbF8JOzobni@gmail.com> (raw)
In-Reply-To: <20261109124816.61438-7-blum@kernel.org>
* Thorsten Blum <blum@kernel.org> wrote:
> efi_get_system_table() declares an unused et variable, and
> efi_get_conf_table() declares an unused ret variable - remove both.
>
> get_kexec_setup_data() also takes an unused et argument. Drop the
> argument and update the only caller in efi_get_conf_table().
>
> Also simplify the no EFI system table case in efi_get_system_table() by
> falling through to the existing return since sys_tbl_pa is already zero,
> and add the missing newline to the debug log message.
>
> Reviewed-by: Jan Stancek <jstancek@redhat.com>
> Reviewed-by: Nicolas Schier <n.schier@fritz.com>
> Signed-off-by: Thorsten Blum <blum@kernel.org>
> @@ -70,10 +69,8 @@ unsigned long efi_get_system_table(struct boot_params *bp)
> #else
> sys_tbl_pa = ei->efi_systab;
> #endif
> - if (!sys_tbl_pa) {
> - debug_putstr("EFI system table not found.");
> - return 0;
> - }
> + if (!sys_tbl_pa)
> + debug_putstr("EFI system table not found.\n");
>
> return sys_tbl_pa;
> }
Please put unrelated changes into separate patches.
In particular don't make changes that are not reflected in
the title:
[PATCH v4 1/4] x86/boot/compressed: Remove unused variables in EFI helpers
Having the above change included in a patch with such a title
is highly confusing.
Thanks,
Ingo
next prev parent reply other threads:[~2026-11-10 8:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 12:48 [PATCH v4 0/4] x86/boot/compressed: Enable -Wunused and remove unused variables Thorsten Blum
2026-11-09 12:48 ` [PATCH v4 1/4] x86/boot/compressed: Remove unused variables in EFI helpers Thorsten Blum
2026-11-10 8:14 ` Ingo Molnar [this message]
2026-11-09 12:48 ` [PATCH v4 2/4] x86/boot/compressed: Clean up EFI RSDP lookup in efi_get_rsdp_addr() Thorsten Blum
2026-11-09 12:48 ` [PATCH v4 3/4] x86/boot/compressed: Mark process_mem_region() index __maybe_unused Thorsten Blum
2026-11-10 8:22 ` Ingo Molnar
2026-11-09 12:48 ` [PATCH v4 4/4] x86/boot/compressed: Enable -Wunused Thorsten Blum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=avLSetbF8JOzobni@gmail.com \
--to=mingo@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andreas@gaisler.com \
--cc=ardb@kernel.org \
--cc=blum@kernel.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jstancek@redhat.com \
--cc=kevin.brodsky@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=mingo@redhat.com \
--cc=n.schier@fritz.com \
--cc=pratyush@kernel.org \
--cc=rppt@kernel.org \
--cc=ryan.roberts@arm.com \
--cc=tglx@kernel.org \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®