From: Christoph Egger Subject: [PATCH][STUBDOM] ioemu: consistently use TARGET_PAGE_SIZE (resend) Date: Mon, 7 Sep 2009 16:10:32 +0200 Message-ID: <200909071610.32278.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_YRRpKFMRiZa9sBe" 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 Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org --Boundary-00=_YRRpKFMRiZa9sBe Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch makes ioemu's block-vbd.c use of TARGET_PAGE_SIZE. Fixes build error on NetBSD when building stubdom. 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: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_YRRpKFMRiZa9sBe Content-Type: text/x-diff; charset="iso 8859-15"; 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=_YRRpKFMRiZa9sBe 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=_YRRpKFMRiZa9sBe--