Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2015 16:53:50 +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: r286325 - head/sys/compat/cloudabi
Message-ID:  <201508051653.t75Groqh020164@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508051653.t75Groqh020164>