+ efi-remove-unused-variables-in-__map_region.patch added to -mm tree
Subject: + efi-remove-unused-variables-in-__map_region.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 10 Dec 2013 15:23:08 -0800
The patch titled
Subject: efi: remove unused variables in __map_region
has been added to the -mm tree. Its filename is
efi-remove-unused-variables-in-__map_region.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/efi-remove-unused-variables-in-__map_region.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/efi-remove-unused-variables-in-__map_region.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Dave Young <[email protected]>
Subject: efi: remove unused variables in __map_region
variables size and end is useless in this function, thus remove them.
---
arch/x86/platform/efi/efi_64.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
arch/x86/platform/efi/efi_64.c renamed from arch/x86/platform/efi/efi_64.c~efi-remove-unused-variables-in-__map_region +1 -4
@@ -148,15 +148,11 @@ void efi_setup_page_tables(void)static void __init __map_region (efi_memory_desc_t *md,u64 va) {pgd_t *pgd = (pgd_t *)__va (real_mode_header->trampoline_pgd); -unsigned long pf =0 , size; -u64 end; +unsigned long pf =0 ;if (!(md->attribute &EFI_MEMORY_WB )) pf |= _PAGE_PCD; - size = md->num_pages <<PAGE_SHIFT ; - end = va + size;