From: Matt Fleming <matt@console-pimps.org>
To: Mark Salter <msalter@redhat.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
matt.fleming@intel.com, Leif Lindholm <leif.lindholm@linaro.org>,
roy.franz@linaro.org, patches@linaro.org,
Grant Likely <grant.likely@secretlab.ca>
Subject: Re: [PATCH 1/6] efi: create memory map iteration helper
Date: Mon, 13 Jan 2014 15:17:59 +0000 [thread overview]
Message-ID: <20140113151759.GG3256@console-pimps.org> (raw)
In-Reply-To: <1389392950-22457-2-git-send-email-msalter@redhat.com>
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 and avoid
> more in the future.
>
> Signed-off-by: Mark Salter <msalter@redhat.com>
> ---
> include/linux/efi.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/linux/efi.h b/include/linux/efi.h
> index 11ce678..9dc5b05 100644
> --- a/include/linux/efi.h
> +++ b/include/linux/efi.h
> @@ -618,6 +618,12 @@ extern int efi_set_rtc_mmss(const struct timespec *now);
> extern void efi_reserve_boot_services(void);
> extern struct efi_memory_map memmap;
>
> +/* Iterate through an efi_memory_map */
> +#define for_each_efi_memory_desc(m, md) \
> + for ((md) = (m)->map; \
> + (md) <= (efi_memory_desc_t *)((m)->map_end - (m)->desc_size); \
> + (md) = (void *)(md) + (m)->desc_size)
> +
Err, what? I just picked up your previous patch ("x86/efi: Create memory
map iteration helper") which adds this chunk, and I didn't see a follow
up email telling me not to pick it up.
What's the plan?
--
Matt Fleming, Intel Open Source Technology Center
next prev parent reply other threads:[~2014-01-13 15:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 22:29 [PATCH 0/6] arm64: Add EFI stub and runtime services support Mark Salter
2014-01-10 22:29 ` [PATCH 1/6] efi: create memory map iteration helper Mark Salter
2014-01-13 15:17 ` Matt Fleming [this message]
2014-01-13 17:53 ` Mark Salter
2014-01-10 22:29 ` [PATCH 2/6] arm64: Add function to create identity mappings Mark Salter
2014-01-22 17:39 ` Catalin Marinas
2014-01-10 22:29 ` [PATCH 5/6] doc: arm64: add description of EFI stub support Mark Salter
2014-01-10 22:29 ` [PATCH 6/6] arm64: add EFI runtime services Mark Salter
2014-01-23 11:24 ` Catalin Marinas
[not found] ` <1389392950-22457-5-git-send-email-msalter@redhat.com>
2014-01-13 18:49 ` [PATCH 4/6] arm64: add EFI stub Arnd Bergmann
2014-01-14 14:44 ` Mark Salter
2014-01-14 19:26 ` Roy Franz
2014-01-22 18:04 ` Catalin Marinas
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=20140113151759.GG3256@console-pimps.org \
--to=matt@console-pimps.org \
--cc=catalin.marinas@arm.com \
--cc=grant.likely@secretlab.ca \
--cc=leif.lindholm@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=msalter@redhat.com \
--cc=patches@linaro.org \
--cc=roy.franz@linaro.org \
--cc=will.deacon@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox