shadow: Fix BUILD_BUG_ON().
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Aug 2008 12:54:17 +0000 (13:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Aug 2008 12:54:17 +0000 (13:54 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/shadow/private.h

index b7b93c6f25fc4d0727cb45d3ef68521370b2cff2..d2d4f6b29fca3ca43c38359189fb0451a3a383e5 100644 (file)
@@ -218,7 +218,7 @@ struct shadow_page_info
  * Also, the mbz field must line up with the owner field of normal 
  * pages, so they look properly like anonymous/xen pages. */
 static inline void shadow_check_page_struct_offsets(void) {
-    BUILD_BUG_ON(sizeof (struct shadow_page_info) < sizeof (struct page_info));
+    BUILD_BUG_ON(sizeof (struct shadow_page_info) > sizeof (struct page_info));
     BUILD_BUG_ON(offsetof(struct shadow_page_info, mbz) !=
                  offsetof(struct page_info, u.inuse._domain));
 };