Skip to content

efi: Delete global 'memmap' variable

Matt Fleming linux-efi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Fixup bisection breakage due to efi->memmap misuse
- Drop new 'phys_map' variable in arm-runtime.c per Ard

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi: Iterate over efi.memmap in for_each_efi_memory_descarch/x86/platform/efi/efi.c arch/x86/platform/efi/efi_64.c arch/x86/platform/efi/quirks.c +6 more+39 -561 reply
2/2efi: Remove global 'memmap'arch/x86/platform/efi/efi.c drivers/firmware/efi/arm-init.c drivers/firmware/efi/arm-runtime.c +3 more+85 -781 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchArd Biesheuvel
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] efi: Delete global 'memmap' variable

Ard's recent EFI memory attributes table patches caused ia64 build failures due to the use of the global 'memmap' EFI memory map object, which doesn't exist on ia64.

That failure prompted me to dig out these two patches that delete 'memmap' once and for all and replace all occurrences with 'efi.memmap'.

And because all call sites are now using 'efi.memmap' for_each_efi_memory_desc() can implicitly use that object instead of requiring it to be passed as an argument.

Changes in v2:
- Fixup bisection breakage due to efi->memmap misuse
- Drop new 'phys_map' variable in arm-runtime.c per Ard

Matt Fleming (2):
efi: Iterate over efi.memmap in for_each_efi_memory_desc
efi: Remove global 'memmap'

 arch/x86/platform/efi/efi.c                    | 125 ++++++++++++-------------
 arch/x86/platform/efi/efi_64.c                 |  10 +-
 arch/x86/platform/efi/quirks.c                 |  10 +-
 drivers/firmware/efi/arm-init.c                |  20 ++--
 drivers/firmware/efi/arm-runtime.c             |  14 +--
 drivers/firmware/efi/efi.c                     |   8 +-
 drivers/firmware/efi/fake_mem.c                |  43 +++++----
 drivers/firmware/efi/libstub/efi-stub-helper.c |   6 +-
 include/linux/efi.h                            |  14 ++-
 9 files changed, 120 insertions(+), 130 deletions(-)
Signature · 1 line
2.7.3