Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1188690 > unrolled thread
| Started by | Ingo Molnar <mingo@kernel.org> |
|---|---|
| First post | 2015-07-21 08:20 +0200 |
| Last post | 2015-07-21 08:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] x86: hd0_info and hd1_info are obsolete and unused fields Ingo Molnar <mingo@kernel.org> - 2015-07-21 08:20 +0200
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2015-07-21 08:20 +0200 |
| Subject | Re: [PATCH] x86: hd0_info and hd1_info are obsolete and unused fields |
| Message-ID | <pOz4d-8rH-7@gated-at.bofh.it> |
* 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web