Module Name: src
Committed By: thorpej
Date: Mon Apr 27 05:28:18 UTC 2020
Modified Files:
src/sys/kern: sys_futex.c
Log Message:
We would have bigger problems if PAGE_SIZE were < sizeof(int). Remove
a CTASSERT() that can't be evaluated at compile-time on all platforms.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/sys_futex.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/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.2 src/sys/kern/sys_futex.c:1.3
--- src/sys/kern/sys_futex.c:1.2 Sun Apr 26 21:04:46 2020
+++ src/sys/kern/sys_futex.c Mon Apr 27 05:28:17 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $ */
+/* $NetBSD: sys_futex.c,v 1.3 2020/04/27 05:28:17 thorpej Exp $ */
/*-
* Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.3 2020/04/27 05:28:17 thorpej Exp $");
/*
* Futexes
@@ -676,8 +676,6 @@ futex_lookup(int *uaddr, bool shared, st
if ((va & 3) != 0)
return EINVAL;
- CTASSERT((PAGE_SIZE & 3) == 0);
-
/* Look it up. */
error = futex_key_init(&fk, vm, va, shared);
if (error)
@@ -726,8 +724,6 @@ futex_get(int *uaddr, bool shared, struc
if ((va & 3) != 0)
return EINVAL;
- CTASSERT((PAGE_SIZE & 3) == 0);
-
error = futex_key_init(&fk, vm, va, shared);
if (error)
return error;