Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Tidy up includes.



details:   https://anonhg.NetBSD.org/src/rev/53ddd314b935
branches:  trunk
changeset: 1010945:53ddd314b935
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jun 13 18:38:33 2020 +0000

description:
Tidy up includes.

diffstat:

 sys/dev/cgd.c        |  27 ++++++++++++++-------------
 sys/dev/cgd_crypto.c |  10 +++++-----
 sys/dev/cgdvar.h     |   3 ++-
 3 files changed, 21 insertions(+), 19 deletions(-)

diffs (103 lines):

diff -r a64fa68ea0c1 -r 53ddd314b935 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Sat Jun 13 18:36:07 2020 +0000
+++ b/sys/dev/cgd.c     Sat Jun 13 18:38:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.128 2020/06/13 18:36:07 riastradh Exp $ */
+/* $NetBSD: cgd.c,v 1.129 2020/06/13 18:38:33 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,32 +30,33 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.128 2020/06/13 18:36:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.129 2020/06/13 18:38:33 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/proc.h>
-#include <sys/errno.h>
 #include <sys/buf.h>
 #include <sys/bufq.h>
-#include <sys/kmem.h>
-#include <sys/module.h>
-#include <sys/pool.h>
-#include <sys/ioctl.h>
+#include <sys/conf.h>
+#include <sys/cpu.h>
 #include <sys/device.h>
 #include <sys/disk.h>
 #include <sys/disklabel.h>
+#include <sys/errno.h>
 #include <sys/fcntl.h>
+#include <sys/ioctl.h>
+#include <sys/kmem.h>
+#include <sys/module.h>
 #include <sys/namei.h> /* for pathbuf */
-#include <sys/vnode.h>
-#include <sys/conf.h>
+#include <sys/pool.h>
+#include <sys/proc.h>
 #include <sys/syslog.h>
+#include <sys/systm.h>
+#include <sys/vnode.h>
 #include <sys/workqueue.h>
-#include <sys/cpu.h>
 
+#include <dev/cgd_crypto.h>
+#include <dev/cgdvar.h>
 #include <dev/dkvar.h>
-#include <dev/cgdvar.h>
 
 #include <miscfs/specfs/specdev.h> /* for v_rdev */
 
diff -r a64fa68ea0c1 -r 53ddd314b935 sys/dev/cgd_crypto.c
--- a/sys/dev/cgd_crypto.c      Sat Jun 13 18:36:07 2020 +0000
+++ b/sys/dev/cgd_crypto.c      Sat Jun 13 18:38:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd_crypto.c,v 1.18 2020/06/13 18:35:35 riastradh Exp $ */
+/* $NetBSD: cgd_crypto.c,v 1.19 2020/06/13 18:38:33 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,17 +37,17 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd_crypto.c,v 1.18 2020/06/13 18:35:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd_crypto.c,v 1.19 2020/06/13 18:38:33 riastradh Exp $");
 
 #include <sys/param.h>
+#include <sys/malloc.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 
 #include <dev/cgd_crypto.h>
 
-#include <crypto/rijndael/rijndael-api-fst.h>
+#include <crypto/blowfish/blowfish.h>
 #include <crypto/des/des.h>
-#include <crypto/blowfish/blowfish.h>
+#include <crypto/rijndael/rijndael-api-fst.h>
 
 /*
  * The general framework provides only one generic function.
diff -r a64fa68ea0c1 -r 53ddd314b935 sys/dev/cgdvar.h
--- a/sys/dev/cgdvar.h  Sat Jun 13 18:36:07 2020 +0000
+++ b/sys/dev/cgdvar.h  Sat Jun 13 18:38:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgdvar.h,v 1.19 2020/03/09 08:33:15 mlelstv Exp $ */
+/* $NetBSD: cgdvar.h,v 1.20 2020/06/13 18:38:33 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -66,6 +66,7 @@
 #ifdef _KERNEL
 
 #include <dev/cgd_crypto.h>
+#include <dev/dkvar.h>
 
 /* This cryptdata structure is here rather than cgd_crypto.h, since
  * it stores local state which will not be generalised beyond the



Home | Main Index | Thread Index | Old Index