Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Remove compile-time asserts checking whether intptr...



details:   https://anonhg.NetBSD.org/src/rev/6a187da7e2ad
branches:  trunk
changeset: 454982:6a187da7e2ad
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Oct 03 22:29:17 2019 +0000

description:
Remove compile-time asserts checking whether intptr_t and void* are compat

The checks were requested by core@ as a prerequisite for kevent::udata type
switch from intptr_t to void*.

diffstat:

 sys/kern/init_main.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r f5891a258d7a -r 6a187da7e2ad sys/kern/init_main.c
--- a/sys/kern/init_main.c      Thu Oct 03 22:26:43 2019 +0000
+++ b/sys/kern/init_main.c      Thu Oct 03 22:29:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.505 2019/09/24 19:21:45 kamil Exp $    */
+/*     $NetBSD: init_main.c,v 1.506 2019/10/03 22:29:17 kamil Exp $    */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.505 2019/09/24 19:21:45 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.506 2019/10/03 22:29:17 kamil Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -250,9 +250,6 @@
 static void configure3(void);
 void main(void);
 
-CTASSERT(sizeof(void *) == sizeof(intptr_t));
-CTASSERT(__alignof__(void *) == __alignof__(intptr_t));
-
 /*
  * System startup; initialize the world, create process 0, mount root
  * filesystem, and fork to create init and pagedaemon.  Most of the



Home | Main Index | Thread Index | Old Index