Source-Changes-HG archive

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

[src/trunk]: src/sys/sys remove unused "_DIAGNOSTIC" option and opt_diagnosti...



details:   https://anonhg.NetBSD.org/src/rev/c4d19b341f43
branches:  trunk
changeset: 949790:c4d19b341f43
user:      chs <chs%NetBSD.org@localhost>
date:      Sat Jan 16 23:51:50 2021 +0000

description:
remove unused "_DIAGNOSTIC" option and opt_diagnostic.h.
note that this is unrelated to the widely used "DIAGNOSTIC" option.

diffstat:

 sys/arch/arm/arm/psci.c           |  6 ++----
 sys/conf/files                    |  3 +--
 sys/lib/libkern/arch/hppa/bcopy.S |  5 ++---
 sys/lib/libkern/libkern.h         |  3 +--
 sys/sys/cdefs.h                   |  6 +-----
 sys/sys/queue.h                   |  7 ++-----
 6 files changed, 9 insertions(+), 21 deletions(-)

diffs (124 lines):

diff -r 90e3f6041e4f -r c4d19b341f43 sys/arch/arm/arm/psci.c
--- a/sys/arch/arm/arm/psci.c   Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/arch/arm/arm/psci.c   Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psci.c,v 1.4 2020/12/04 08:00:53 skrll Exp $ */
+/* $NetBSD: psci.c,v 1.5 2021/01/16 23:51:50 chs Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -26,10 +26,8 @@
  * SUCH DAMAGE.
  */
 
-#include "opt_diagnostic.h"
-
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psci.c,v 1.4 2020/12/04 08:00:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psci.c,v 1.5 2021/01/16 23:51:50 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
diff -r 90e3f6041e4f -r c4d19b341f43 sys/conf/files
--- a/sys/conf/files    Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/conf/files    Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.1277 2020/10/27 08:57:11 ryo Exp $
+#      $NetBSD: files,v 1.1278 2021/01/16 23:51:50 chs Exp $
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
 version        20171118
@@ -27,7 +27,6 @@
 defflag        opt_modular.h           MODULAR_DEFAULT_AUTOLOAD
 defflag                                KEYLOCK
 defparam opt_syslimits.h       CHILD_MAX OPEN_MAX
-defflag opt_diagnostic.h       _DIAGNOSTIC
 defflag                                GPROF
 defflag                                KASAN
 defflag opt_kasan.h            KASAN_PANIC
diff -r 90e3f6041e4f -r c4d19b341f43 sys/lib/libkern/arch/hppa/bcopy.S
--- a/sys/lib/libkern/arch/hppa/bcopy.S Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/lib/libkern/arch/hppa/bcopy.S Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcopy.S,v 1.15 2015/08/30 07:55:45 uebayasi Exp $      */
+/*     $NetBSD: bcopy.S,v 1.16 2021/01/16 23:51:51 chs Exp $   */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,6 @@
 
 #if defined(SPCOPY) && !defined(_STANDALONE)
 
-#include "opt_diagnostic.h"
 #include "opt_multiprocessor.h"
 
 #include <machine/cpu.h>
@@ -50,7 +49,7 @@
 #include <machine/reg.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-RCSID("$NetBSD: bcopy.S,v 1.15 2015/08/30 07:55:45 uebayasi Exp $")
+RCSID("$NetBSD: bcopy.S,v 1.16 2021/01/16 23:51:51 chs Exp $")
 #endif /* LIBC_SCCS and not lint */
 
 /*
diff -r 90e3f6041e4f -r c4d19b341f43 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/lib/libkern/libkern.h Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libkern.h,v 1.140 2020/04/17 17:24:46 maxv Exp $       */
+/*     $NetBSD: libkern.h,v 1.141 2021/01/16 23:51:51 chs Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -35,7 +35,6 @@
 #define _LIB_LIBKERN_LIBKERN_H_
 
 #ifdef _KERNEL_OPT
-#include "opt_diagnostic.h"
 #include "opt_kasan.h"
 #include "opt_kcsan.h"
 #include "opt_kmsan.h"
diff -r 90e3f6041e4f -r c4d19b341f43 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/sys/cdefs.h   Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.155 2020/12/04 20:38:44 christos Exp $     */
+/*     $NetBSD: cdefs.h,v 1.156 2021/01/16 23:51:51 chs Exp $  */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -36,10 +36,6 @@
 #ifndef        _SYS_CDEFS_H_
 #define        _SYS_CDEFS_H_
 
-#ifdef _KERNEL_OPT
-#include "opt_diagnostic.h"
-#endif
-
 /*
  * Macro to test if we're using a GNU C compiler of a specific vintage
  * or later, for e.g. features that appeared in a particular version
diff -r 90e3f6041e4f -r c4d19b341f43 sys/sys/queue.h
--- a/sys/sys/queue.h   Sat Jan 16 23:50:49 2021 +0000
+++ b/sys/sys/queue.h   Sat Jan 16 23:51:50 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: queue.h,v 1.75 2020/10/20 23:27:58 kamil Exp $ */
+/*     $NetBSD: queue.h,v 1.76 2021/01/16 23:51:51 chs Exp $   */
 
 /*
  * Copyright (c) 1991, 1993
@@ -83,12 +83,9 @@
 #include <sys/null.h>
 #endif
 
-#if defined(_KERNEL) && defined(_KERNEL_OPT)
-#include "opt_diagnostic.h"
-#ifdef DIAGNOSTIC
+#if defined(_KERNEL) && defined(DIAGNOSTIC)
 #define QUEUEDEBUG     1
 #endif
-#endif
 
 #if defined(QUEUEDEBUG)
 # if defined(_KERNEL)



Home | Main Index | Thread Index | Old Index