ia64/linux-2.6.18-xen.hg

changeset 473:14818545121d

xen,x86: fix warnings introduced by c/s 468

I overlooked the compiler warnings resulting from cases where the
argument of __pte_ma() is a plain zero.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 17 11:21:25 2008 +0000 (2008-03-17)
parents 3983b041fc51
children 6a196954e479
files include/asm-i386/mach-xen/asm/maddr.h
line diff
     1.1 --- a/include/asm-i386/mach-xen/asm/maddr.h	Mon Mar 10 22:53:07 2008 +0000
     1.2 +++ b/include/asm-i386/mach-xen/asm/maddr.h	Mon Mar 17 11:21:25 2008 +0000
     1.3 @@ -154,7 +154,7 @@ static inline paddr_t pte_machine_to_phy
     1.4  #endif
     1.5  
     1.6  #ifdef CONFIG_X86_PAE
     1.7 -#define __pte_ma(x)	((pte_t) { (x), (x) >> 32 } )
     1.8 +#define __pte_ma(x)	((pte_t) { (x), (maddr_t)(x) >> 32 } )
     1.9  static inline pte_t pfn_pte_ma(unsigned long page_nr, pgprot_t pgprot)
    1.10  {
    1.11  	pte_t pte;