From: Stefano Stabellini Subject: Re: [PATCH 09/10] xen: balloon: use correct type for frame_list Date: Wed, 17 Oct 2012 18:28:35 +0100 Message-ID: References: <1350463138.2460.19.camel@zakaz.uk.xensource.com> <1350463157-5068-9-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1350463157-5068-9-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Stefano Stabellini , "xen-devel@lists.xen.org" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On Wed, 17 Oct 2012, Ian Campbell wrote: > This is now a xen_pfn_t. > > Signed-off-by: Ian Campbell > --- > drivers/xen/balloon.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c > index d7bd1b3..d6886d9 100644 > --- a/drivers/xen/balloon.c > +++ b/drivers/xen/balloon.c > @@ -87,7 +87,7 @@ struct balloon_stats balloon_stats; > EXPORT_SYMBOL_GPL(balloon_stats); > > /* We increase/decrease in batches which fit in a page */ > -static unsigned long frame_list[PAGE_SIZE / sizeof(unsigned long)]; > +static xen_pfn_t frame_list[PAGE_SIZE / sizeof(unsigned long)]; > > #ifdef CONFIG_HIGHMEM > #define inc_totalhigh_pages() (totalhigh_pages++) I know that we agreed to this change but it still gives me the creeps. I would love a comment either in the code or in the commit message, explaining why it is safe to pass a xen_pfn_t (potentially 64 bit) to set_phys_to_machine.