summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-06-09 15:44:18 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-06-09 15:44:18 +0000
commite7be2376f5a5ad6739b6c9fde5053aad5d01e444 (patch)
tree788d5b35d8bf8e99ed86c4aa565edeaf42d20504 /sys/dev
parente296f61b1a4136c8060a582f4eae13f6f1f44d86 (diff)
Move declaration of cn_tab from dev/cons.c to dev/cninit.c, or appropriate
md files for ports which do not use dev/cninit.c. This gets rid of a common at kernel link time. feedback drahn@ ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cninit.c4
-rw-r--r--sys/dev/cons.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/cninit.c b/sys/dev/cninit.c
index c4210eb56c5..e4989f1c7df 100644
--- a/sys/dev/cninit.c
+++ b/sys/dev/cninit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cninit.c,v 1.8 2008/01/23 16:37:55 jsing Exp $ */
+/* $OpenBSD: cninit.c,v 1.9 2010/06/09 15:44:17 miod Exp $ */
/* $NetBSD: cninit.c,v 1.2 1995/04/11 22:08:10 pk Exp $ */
/*
@@ -52,6 +52,8 @@
#include <dev/cons.h>
+struct consdev *cn_tab = NULL;
+
void
cninit()
{
diff --git a/sys/dev/cons.c b/sys/dev/cons.c
index 6383f33d3ed..8b567a62362 100644
--- a/sys/dev/cons.c
+++ b/sys/dev/cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cons.c,v 1.18 2007/06/17 18:50:58 jasper Exp $ */
+/* $OpenBSD: cons.c,v 1.19 2010/06/09 15:44:17 miod Exp $ */
/* $NetBSD: cons.c,v 1.30 1996/04/08 19:57:30 jonathan Exp $ */
/*
@@ -54,8 +54,8 @@
#include <dev/cons.h>
struct tty *constty = NULL; /* virtual console output device */
-struct consdev *cn_tab; /* physical console device info */
struct vnode *cn_devvp; /* vnode for underlying device. */
+extern struct consdev *cn_tab; /* physical console device info */
int
cnopen(dev_t dev, int flag, int mode, struct proc *p)