svn commit: r286325 - head/sys/compat/cloudabi
Ed Schouten
ed at FreeBSD.org
Wed Aug 5 16:53:50 UTC 2015
Author: ed
Date: Wed Aug 5 16:53:49 2015
New Revision: 286325
URL: https://svnweb.freebsd.org/changeset/base/286325
Log:
Correct the previous commit: remove the DECLARE_MODULE().
It looks like a MODULE_VERSION() can also appear on its own -- there is
no need to use explicitly use DECLARE_MODULE(). Looking at other
modules, this seems common practice.
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:45:47 2015 (r286324)
+++ head/sys/compat/cloudabi/cloudabi_proc.c Wed Aug 5 16:53:49 2015 (r286325)
@@ -30,7 +30,6 @@ __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>
@@ -136,11 +135,4 @@ cloudabi_sys_proc_raise(struct thread *t
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);
More information about the svn-src-all
mailing list