WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] linux: fix warnings introduced by c/s 468

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux: fix warnings introduced by c/s 468
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: 2008年3月10日 09:31:13 +0000
Delivery-date: 2008年3月10日 02:30:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I overlooked the compiler warnings resulting from cases where the
argument of __pte_ma() is a plain zero.
Almost as usual, written and tested on 2.6.16.60 and made apply to the
2.6.18 tree without further testing.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: sle10sp2-2008年03月10日/include/asm-i386/mach-xen/asm/maddr.h
===================================================================
--- sle10sp2-2008年03月10日.orig/include/asm-i386/mach-xen/asm/maddr.h 
2008年03月10日 09:09:23.000000000 +0100
+++ sle10sp2-2008年03月10日/include/asm-i386/mach-xen/asm/maddr.h 2008年03月10日 
10:17:20.000000000 +0100
@@ -154,7 +154,7 @@ static inline paddr_t pte_machine_to_phy
 #endif
 
 #ifdef CONFIG_X86_PAE
-#define __pte_ma(x) ((pte_t) { (x), (x) >> 32 } )
+#define __pte_ma(x) ((pte_t) { (x), (maddr_t)(x) >> 32 } )
 static inline pte_t pfn_pte_ma(unsigned long page_nr, pgprot_t pgprot)
 {
 pte_t pte;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux: fix warnings introduced by c/s 468, Jan Beulich <=
Previous by Date: [Xen-devel] Re: [PATCH] PV Passthrough PCI Device Hotplug Support (Tools Part) , Zhai, Edwin
Next by Date: Re: [Xen-devel] about network live connection during migration , tgh
Previous by Thread: [Xen-devel] fix the overflow of pysical address , Duan, Ronghui
Next by Thread: [Xen-devel] [PATCH] SVM: handle page faults in emaulted instruction fetches , Tim Deegan
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /