From: "Jan Beulich" Subject: Re: [PATCH] xen: Use ULL for GB macro Date: Fri, 22 May 2015 07:53:09 +0100 Message-ID: <555EEE75020000780007D064@mail.emea.novell.com> References: <1432250206-30484-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YvgpV-0002Tv-Cz for xen-devel@lists.xenproject.org; Fri, 22 May 2015 06:53:13 +0000 In-Reply-To: <1432250206-30484-1-git-send-email-julien.grall@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, keir@xen.org, stefano.stabellini@citrix.com, ian.campbell@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 22.05.15 at 01:16, wrote: > --- a/xen/arch/x86/apic.c > +++ b/xen/arch/x86/apic.c > @@ -992,7 +992,7 @@ void __init init_apic_mappings(void) > apic_phys = mp_lapic_addr; > > set_fixmap_nocache(FIX_APIC_BASE, apic_phys); > - apic_printk(APIC_VERBOSE, "mapped APIC to %08lx (%08lx)\n", APIC_BASE, > + apic_printk(APIC_VERBOSE, "mapped APIC to %08llx (%08lx)\n", APIC_BASE, Please use 'L' as the shorter equivalent. > --- a/xen/include/xen/config.h > +++ b/xen/include/xen/config.h > @@ -70,7 +70,7 @@ > #define __bitwise > > #define MB(_mb) (_AC(_mb, UL) << 20) > -#define GB(_gb) (_AC(_gb, UL) << 30) > +#define GB(_gb) (_AC(_gb, ULL) << 30) So why do you leave MB() alone? It obviously suffers from the same problem (perhaps only latent at this point, but anyway). Jan