From: Christoph Egger Subject: [PATCH] ioemu: build fix: use TARGET_PAGE_SIZE Date: Tue, 11 Aug 2009 11:21:34 +0200 Message-ID: <200908111121.34337.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_egTgK/TtHmMLJQc" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_egTgK/TtHmMLJQc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Consistenly use TARGET_PAGE_SIZE in ioemu's block-vbd.c. Fixes build error on NetBSD. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_egTgK/TtHmMLJQc Content-Type: text/x-diff; charset="us-ascii"; name="xen_ioemu_block-vbd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_ioemu_block-vbd.diff" diff --git a/block-vbd.c b/block-vbd.c index 89ecf44..11ac4d0 100644 --- a/block-vbd.c +++ b/block-vbd.c @@ -92,8 +92,8 @@ static int vbd_open(BlockDriverState *bs, const char *filename, int flags) printf("sector size is %d, we only support sector sizes that are multiple of %d\n", s->info.sector_size, SECTOR_SIZE); return -EIO; } - if (PAGE_SIZE % s->info.sector_size) { - printf("sector size is %d, we only support sector sizes that divide %llu\n", s->info.sector_size, PAGE_SIZE); + if (TARGET_PAGE_SIZE % s->info.sector_size) { + printf("sector size is %d, we only support sector sizes that divide %u\n", s->info.sector_size, TARGET_PAGE_SIZE); return -EIO; } --Boundary-00=_egTgK/TtHmMLJQc Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_egTgK/TtHmMLJQc--