From: Tim Deegan Subject: Re: [PATCH 12/16] arm: const-correctness in virt_to_maddr Date: Thu, 6 Sep 2012 14:33:51 +0100 Message-ID: <20120906133351.GL56463@ocelot.phlegethon.org> References: <1346678886.32462.9.camel@zakaz.uk.xensource.com> <1346679056-8108-12-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1346679056-8108-12-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: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 13:30 +0000 on 03 Sep (1346679052), Ian Campbell wrote: > Signed-off-by: Ian Campbell > --- > xen/include/asm-arm/mm.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h > index b0e5a67..7440fe5 100644 > --- a/xen/include/asm-arm/mm.h > +++ b/xen/include/asm-arm/mm.h > @@ -179,9 +179,9 @@ extern void clear_fixmap(unsigned map); > #define paddr_to_pdx(pa) pfn_to_pdx(paddr_to_pfn(pa)) > > > -static inline paddr_t virt_to_maddr(void *va) > +static inline paddr_t virt_to_maddr(const void *va) > { > - uint64_t par = va_to_par((uint32_t)va); > + uint64_t par = va_to_par((const uint32_t)va); This second const is unnecessary (or else you also need one in the cast on the next line). For the first one, though: Acked-by: Tim Deegan > return (par & PADDR_MASK & PAGE_MASK) | ((unsigned long) va & ~PAGE_MASK); > } > > -- > 1.7.9.1 > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel