Author: ed
Date: Wed Aug  5 16:45:47 2015
New Revision: 286324
URL: https://svnweb.freebsd.org/changeset/base/286324

Log:
  Add DECLARE_MODULE() to the "cloudabi" kernel module.
  
  This kernel module does not require any explicit initialization, but a
  module declaration is needed to let the "cloudabi64" kernel module
  automatically pull this in.
  
  Obtained from:        https://github.com/NuxiNL/freebsd

Modified:
  head/sys/compat/cloudabi/cloudabi_proc.c

Modified: head/sys/compat/cloudabi/cloudabi_proc.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_proc.c    Wed Aug  5 16:15:43 2015        
(r286323)
+++ head/sys/compat/cloudabi/cloudabi_proc.c    Wed Aug  5 16:45:47 2015        
(r286324)
@@ -30,7 +30,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/capsicum.h>
 #include <sys/filedesc.h>
 #include <sys/imgact.h>
+#include <sys/kernel.h>
 #include <sys/lock.h>
+#include <sys/module.h>
 #include <sys/mutex.h>
 #include <sys/proc.h>
 #include <sys/signalvar.h>
@@ -133,3 +135,12 @@ cloudabi_sys_proc_raise(struct thread *t
        PROC_UNLOCK(p);
        return (0);
 }
+
+static moduledata_t cloudabi_module = {
+       "cloudabi",
+       NULL,
+       NULL
+};
+
+DECLARE_MODULE(cloudabi, cloudabi_module, SI_SUB_EXEC, SI_ORDER_ANY);
+MODULE_VERSION(cloudabi, 1);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to