From: Ingo Molnar <mingo@kernel.org>
To: Paolo Pisati <p.pisati@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Borislav Petkov <bp@alien8.de>
Subject: Re: [PATCH] x86: hd0_info and hd1_info are obsolete and unused fields
Date: Tue, 21 Jul 2015 08:17:31 +0200 [thread overview]
Message-ID: <20150721061731.GA355@gmail.com> (raw)
In-Reply-To: <1437411100-10357-1-git-send-email-p.pisati@gmail.com>
* Paolo Pisati <p.pisati@gmail.com> wrote:
> hd0_info and hd1_info are not used anymore, don't reference them in the code
>
> Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
> ---
> arch/x86/kernel/kexec-bzimage64.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/arch/x86/kernel/kexec-bzimage64.c b/arch/x86/kernel/kexec-bzimage64.c
> index 3666a84..c0ae428 100644
> --- a/arch/x86/kernel/kexec-bzimage64.c
> +++ b/arch/x86/kernel/kexec-bzimage64.c
> @@ -218,10 +218,6 @@ setup_boot_parameters(struct kimage *image, struct boot_params *params,
> /* Default APM info */
> memset(¶ms->apm_bios_info, 0, sizeof(params->apm_bios_info));
>
> - /* Default drive info */
> - memset(¶ms->hd0_info, 0, sizeof(params->hd0_info));
> - memset(¶ms->hd1_info, 0, sizeof(params->hd1_info));
> -
> if (image->type == KEXEC_TYPE_CRASH) {
> ret = crash_setup_memmap_entries(image, params);
> if (ret)
But they are not unused: we pass them to secondary kernel images, via kcrash for
example.
So it makes sense to zero out these parameters.
Thanks,
Ingo
prev parent reply other threads:[~2015-07-21 6:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 16:51 [PATCH] x86: hd0_info and hd1_info are obsolete and unused fields Paolo Pisati
2015-07-21 6:17 ` Ingo Molnar [this message]
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=20150721061731.GA355@gmail.com \
--to=mingo@kernel.org \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p.pisati@gmail.com \
--cc=tglx@linutronix.de \
--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