Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen gnttab_get_status_frames frame_list is arra...



details:   https://anonhg.NetBSD.org/src/rev/e748ddb1ea12
branches:  trunk
changeset: 971007:e748ddb1ea12
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Apr 10 21:03:20 2020 +0000

description:
gnttab_get_status_frames frame_list is array if uint64_t values, not u_long
like gnttab_setup_table, fix to use uint64_t

fixes compilation on i386 with XEN3PAE_DOM[0U], pointed out by kre@

diffstat:

 sys/arch/xen/xen/xengnt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 97446c6ab292 -r e748ddb1ea12 sys/arch/xen/xen/xengnt.c
--- a/sys/arch/xen/xen/xengnt.c Fri Apr 10 20:56:56 2020 +0000
+++ b/sys/arch/xen/xen/xengnt.c Fri Apr 10 21:03:20 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xengnt.c,v 1.32 2020/04/10 08:35:52 jdolecek Exp $      */
+/*      $NetBSD: xengnt.c,v 1.33 2020/04/10 21:03:20 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xengnt.c,v 1.32 2020/04/10 08:35:52 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xengnt.c,v 1.33 2020/04/10 21:03:20 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -186,7 +186,7 @@
 xengnt_map_status(void)
 {
        gnttab_get_status_frames_t getstatus;
-       u_long *pages;
+       uint64_t *pages;
        size_t sz;
 
        KASSERT(mutex_owned(&grant_lock));



Home | Main Index | Thread Index | Old Index