Date: Wed, 5 Aug 2015 16:45:47 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286324 - head/sys/compat/cloudabi Message-ID: <201508051645.t75Gjlja015944@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508051645.t75Gjlja015944>