Module Name: src
Committed By: kre
Date: Fri Sep 2 05:09:49 UTC 2022
Modified Files:
src/sys/arch/xen/xen: xenmem.c
Log Message:
Fix the syntax of the non _LP64 code fragment to match that in the
_LP64 fragment, so hopefully 32 bit ports with XEN (i386) will
build again.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/xen/xen/xenmem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/xenmem.c
diff -u src/sys/arch/xen/xen/xenmem.c:1.3 src/sys/arch/xen/xen/xenmem.c:1.4
--- src/sys/arch/xen/xen/xenmem.c:1.3 Thu Sep 1 16:28:08 2022
+++ src/sys/arch/xen/xen/xenmem.c Fri Sep 2 05:09:49 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $ */
+/* $NetBSD: xenmem.c,v 1.4 2022/09/02 05:09:49 kre Exp $ */
/*
* Copyright (c) 2022 Manuel Bouyer.
*
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.4 2022/09/02 05:09:49 kre Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -62,7 +62,7 @@ xenmem_alloc_pa(u_long size, u_long alig
&result);
#else
error = extent_alloc(XENMEM_EX, size, align, 0,
- waitok ? ((EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
+ (waitok ? (EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
&result);
#endif
if (error) {