Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753302AbaAMOkj (ORCPT ); Mon, 13 Jan 2014 09:40:39 -0500 Received: from arkanian.console-pimps.org ([212.110.184.194]:36882 "EHLO arkanian.console-pimps.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbaAMOke (ORCPT ); Mon, 13 Jan 2014 09:40:34 -0500 Date: Mon, 13 Jan 2014 14:40:30 +0000 From: Matt Fleming To: Mark Salter Cc: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Matt Fleming , x86@kernel.org, leif.lindholm@linaro.org, Roy Franz Subject: Re: [PATCH] x86: efi: create memory map iteration helper Message-ID: <20140113144030.GD3256@console-pimps.org> References: <1389210653-15271-1-git-send-email-msalter@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389210653-15271-1-git-send-email-msalter@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 08 Jan, at 02:50:53PM, Mark Salter wrote: > There are about a dozen places in the x86 EFI code which loop through > the EFI memory map descriptors. All 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 duplicate code and make it available > for other architectures to use. > > Signed-off-by: Mark Salter > --- > arch/x86/platform/efi/efi.c | 48 +++++++++++++----------------------------- > arch/x86/platform/efi/efi_64.c | 5 +---- > drivers/firmware/efi/efi.c | 5 ++--- > include/linux/efi.h | 6 ++++++ > 4 files changed, 24 insertions(+), 40 deletions(-) Thanks Mark, I like this. Applied. -- Matt Fleming, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/