Source-Changes-HG archive

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

[src/trunk]: src/sys/net Move code related to module to bottom



details:   https://anonhg.NetBSD.org/src/rev/748ad8a17c02
branches:  trunk
changeset: 946388:748ad8a17c02
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Nov 25 10:25:22 2020 +0000

description:
Move code related to module to bottom

diffstat:

 sys/net/if_spppsubr.c |  59 +++++++++++++++++++++++++-------------------------
 1 files changed, 30 insertions(+), 29 deletions(-)

diffs (84 lines):

diff -r e4a2f5b2731d -r 748ad8a17c02 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Wed Nov 25 10:23:33 2020 +0000
+++ b/sys/net/if_spppsubr.c     Wed Nov 25 10:25:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.210 2020/11/25 10:23:33 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.211 2020/11/25 10:25:22 yamaguchi Exp $       */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.210 2020/11/25 10:23:33 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.211 2020/11/25 10:25:22 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -6271,33 +6271,6 @@
        SPPP_LOCK(sp, RW_WRITER);
 }
 
-/*
- * This file is large.  Tell emacs to highlight it nevertheless.
- *
- * Local Variables:
- * hilit-auto-highlight-maxout: 120000
- * End:
- */
-
-/*
- * Module glue
- */
-MODULE(MODULE_CLASS_MISC, sppp_subr, NULL);
- 
-static int
-sppp_subr_modcmd(modcmd_t cmd, void *arg)
-{
-        switch (cmd) {
-        case MODULE_CMD_INIT:
-        case MODULE_CMD_FINI:
-                return 0;
-        case MODULE_CMD_STAT:
-        case MODULE_CMD_AUTOUNLOAD:
-        default:
-                return ENOTTY;
-        }
-}
-
 static void
 sppp_notify_up(struct sppp *sp)
 {
@@ -6445,3 +6418,31 @@
        atomic_swap_uint(&work->state, SPPP_WK_UNAVAIL);
        workqueue_wait(wq, &work->work);
 }
+
+/*
+ * This file is large.  Tell emacs to highlight it nevertheless.
+ *
+ * Local Variables:
+ * hilit-auto-highlight-maxout: 120000
+ * End:
+ */
+
+/*
+ * Module glue
+ */
+MODULE(MODULE_CLASS_MISC, sppp_subr, NULL);
+
+static int
+sppp_subr_modcmd(modcmd_t cmd, void *arg)
+{
+
+       switch (cmd) {
+       case MODULE_CMD_INIT:
+       case MODULE_CMD_FINI:
+               return 0;
+       case MODULE_CMD_STAT:
+       case MODULE_CMD_AUTOUNLOAD:
+       default:
+               return ENOTTY;
+       }
+}



Home | Main Index | Thread Index | Old Index