From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v4 6/9] xen/arm: Fixing clear_guest_offset macro Date: Mon, 07 Oct 2013 13:53:25 +0100 Message-ID: <5252AEC5.2000906@linaro.org> References: <1380861845-23268-1-git-send-email-jaeyong.yoo@samsung.com> <1380861845-23268-7-git-send-email-jaeyong.yoo@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380861845-23268-7-git-send-email-jaeyong.yoo@samsung.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: Jaeyong Yoo Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 10/04/2013 05:44 AM, Jaeyong Yoo wrote: > Fix the the broken macro 'clear_guest_offset' in arm. > > Signed-off-by: Jaeyong Yoo Reviewed-by: Julien Grall > --- > xen/include/asm-arm/guest_access.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h > index 34aae14..8ff088f 100644 > --- a/xen/include/asm-arm/guest_access.h > +++ b/xen/include/asm-arm/guest_access.h > @@ -77,8 +77,9 @@ unsigned long raw_clear_guest(void *to, unsigned len); > * Clear an array of objects in guest context via a guest handle, > * specifying an offset into the guest array. > */ > -#define clear_guest_offset(hnd, off, ptr, nr) ({ \ > - raw_clear_guest(_d+(off), nr); \ > +#define clear_guest_offset(hnd, off, nr) ({ \ > + void *_d = (hnd).p; \ > + raw_clear_guest(_d+(off), nr); \ > }) > > /* > -- Julien Grall