Re: [PATCH 1/6] efi: create memory map iteration helper

2014-01-13 Thread Mark Salter
On Mon, 2014-01-13 at 15:17 +, Matt Fleming wrote: > On Fri, 10 Jan, at 05:29:05PM, Mark Salter wrote: > > There are a lot of places in the kernel which iterate through an > > EFI memory map. Most of these places use essentially the same > > for-loop code. This patch adds a for_each_efi_memory_

Re: [PATCH 1/6] efi: create memory map iteration helper

2014-01-13 Thread Matt Fleming
On Fri, 10 Jan, at 05:29:05PM, Mark Salter wrote: > There are a lot of places in the kernel which iterate through an > EFI memory map. Most of these places use essentially the same > for-loop code. This patch adds a for_each_efi_memory_desc() > helper to clean up all of the existing duplicate code

[PATCH 1/6] efi: create memory map iteration helper

2014-01-10 Thread Mark Salter
There are a lot of places in the kernel which iterate through an EFI memory map. Most of these places use essentially the same for-loop code. This patch adds a for_each_efi_memory_desc() helper to clean up all of the existing duplicate code and avoid more in the future. Signed-off-by: Mark Salter