summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-06-12 15:10:30 +0000
committerjoerg <joerg@FreeBSD.org>1996-06-12 15:10:30 +0000
commita68baeec5a5993aa0410f1a7334f7a89ec782c73 (patch)
tree98c5ef5cbecde630c397e3a3745ae3812c01b7af
parent592543e6a02f045c2bfe46eacabb3a0bd333ddd4 (diff)
downloadFreeBSD-src-a68baeec5a5993aa0410f1a7334f7a89ec782c73.zip
FreeBSD-src-a68baeec5a5993aa0410f1a7334f7a89ec782c73.tar.gz
Externalize the declaration of dc_list. This is required in order to
get a ``generic'' kernel (``config kernel swap generic'') to compile.
-rw-r--r--sys/i386/i386/swapgeneric.c3
-rw-r--r--sys/kern/kern_devconf.c4
-rw-r--r--sys/sys/devconf.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/sys/i386/i386/swapgeneric.c b/sys/i386/i386/swapgeneric.c
index 105a17c..34da8e7 100644
--- a/sys/i386/i386/swapgeneric.c
+++ b/sys/i386/i386/swapgeneric.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)swapgeneric.c 5.5 (Berkeley) 5/9/91
- * $Id: swapgeneric.c,v 1.14 1995/12/04 16:47:43 phk Exp $
+ * $Id: swapgeneric.c,v 1.15 1995/12/06 09:04:42 peter Exp $
*/
#include <sys/param.h>
@@ -83,7 +83,6 @@ extern int (*mountroot) __P((void));
extern int nfs_mountroot __P((void));
#endif
-extern struct kern_devconf *dc_list;
void gets __P((char *));
struct genericconf {
diff --git a/sys/kern/kern_devconf.c b/sys/kern/kern_devconf.c
index c9c8ba5..4741748 100644
--- a/sys/kern/kern_devconf.c
+++ b/sys/kern/kern_devconf.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_devconf.c,v 1.13 1995/12/14 08:31:17 phk Exp $
+ * $Id: kern_devconf.c,v 1.14 1996/01/31 18:05:19 gibbs Exp $
*/
/*
@@ -38,7 +38,7 @@
#include <sys/sysctl.h>
#include <sys/devconf.h>
-static struct kern_devconf *dc_list = 0;
+struct kern_devconf *dc_list = 0;
static unsigned dc_lastnum = 0;
int
diff --git a/sys/sys/devconf.h b/sys/sys/devconf.h
index 76e309d..1af5c06 100644
--- a/sys/sys/devconf.h
+++ b/sys/sys/devconf.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: devconf.h,v 1.6 1995/04/13 20:37:51 wollman Exp $
+ * $Id: devconf.h,v 1.7 1995/11/20 12:42:38 phk Exp $
*/
/*
@@ -129,6 +129,8 @@ struct kern_devconf {
enum dc_class kdc_class; /* filled in by driver */
};
+extern struct kern_devconf *dc_list;
+
int dev_attach(struct kern_devconf *);
int dev_detach(struct kern_devconf *);
int dev_shutdownall(int);
OpenPOWER on IntegriCloud