From: "Stefan Lippers-Hollmann" <s.L-H@gmx.de>
To: gregkh@suse.de
Cc: linux-kernel@vger.kernel.org, mjg@redhat.com,
hpa@linux.intel.com, tony.luck@intel.com, stable@kernel.org
Subject: Re: Patch "x86, efi: Retain boot service code until after switching to" has been added to the 2.6.39-stable tree
Date: Mon, 30 May 2011 15:52:55 +0200 [thread overview]
Message-ID: <201105301552.57712.s.L-H@gmx.de> (raw)
In-Reply-To: <13067284712957@kroah.org>
Hi
On Monday 30 May 2011, gregkh@suse.de wrote:
> This is a note to let you know that I've just added the patch titled
>
> x86, efi: Retain boot service code until after switching to
>
> to the 2.6.39-stable tree which can be found at:
> http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
>
> The filename of the patch is:
> x86-efi-retain-boot-service-code-until-after-switching-to.patch
> and it can be found in the queue-2.6.39 subdirectory.
The -stable backport of this upstream commit introduces a syntax error,
see below.
> If you, or anyone else, feels it should not be added to the stable tree,
> please let <stable@kernel.org> know about it.
>
>
> From 916f676f8dc016103f983c7ec54c18ecdbb6e349 Mon Sep 17 00:00:00 2001
> From: Matthew Garrett <mjg@redhat.com>
> Date: Wed, 25 May 2011 09:53:13 -0400
> Subject: x86, efi: Retain boot service code until after switching to
> virtual mode
>
> From: Matthew Garrett <mjg@redhat.com>
>
> commit 916f676f8dc016103f983c7ec54c18ecdbb6e349 upstream.
[...]
> --- a/arch/x86/platform/efi/efi_64.c
> +++ b/arch/x86/platform/efi/efi_64.c
> @@ -64,10 +64,11 @@ static void __init early_runtime_code_ma
> if (!(__supported_pte_mask & _PAGE_NX))
> return;
>
> - /* Make EFI runtime service code area executable */
> + /* Make EFI service code area executable */
> for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
> md = p;
> - if (md->type == EFI_RUNTIME_SERVICES_CODE) {
> + if (md->type == EFI_RUNTIME_SERVICES_CODE ||
> + md->type == EFI_BOOT_SERVICES_CODE)
^ missing '{'
> unsigned long end;
> end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT);
> early_mapping_set_exec(md->phys_addr, end, executable);
[...]
This leads to:
arch/x86/platform/efi/efi_64.c: In function 'early_runtime_code_mapping_set_exec':
arch/x86/platform/efi/efi_64.c:72:4: error: expected expression before 'unsigned'
arch/x86/platform/efi/efi_64.c:73:4: error: 'end' undeclared (first use in this function)
arch/x86/platform/efi/efi_64.c:73:4: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/platform/efi/efi_64.c: At top level:
arch/x86/platform/efi/efi_64.c:77:1: error: expected identifier or '(' before '}' token
make[5]: *** [arch/x86/platform/efi/efi_64.o] Error 1
Regards
Stefan Lippers-Hollmann
next parent reply other threads:[~2011-05-30 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <13067284712957@kroah.org>
2011-05-30 13:52 ` Stefan Lippers-Hollmann [this message]
2011-05-30 14:28 ` Patch "x86, efi: Retain boot service code until after switching to" has been added to the 2.6.39-stable tree Greg KH
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=201105301552.57712.s.L-H@gmx.de \
--to=s.l-h@gmx.de \
--cc=gregkh@suse.de \
--cc=hpa@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=stable@kernel.org \
--cc=tony.luck@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.