summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-10-21 01:19:28 +0000
committerwollman <wollman@FreeBSD.org>1994-10-21 01:19:28 +0000
commit3a9b1c345aa754e6b2ad22027ceef577f7c77551 (patch)
tree5fc19e7150289ae5b5e20a8e8f5051859ddcad22
parent207112cfcf4a98bc0c11c23595d30aa2d83c5b6f (diff)
downloadFreeBSD-src-3a9b1c345aa754e6b2ad22027ceef577f7c77551.zip
FreeBSD-src-3a9b1c345aa754e6b2ad22027ceef577f7c77551.tar.gz
Make my ALLDEVS kernel compile (basically, LINT minus a lot of options).
This involves fixing a few things I broke last time.
-rw-r--r--sys/dev/mse/mse.c4
-rw-r--r--sys/i386/isa/ctx.c9
-rw-r--r--sys/i386/isa/if_el.c8
-rw-r--r--sys/i386/isa/mse.c4
-rw-r--r--sys/kern/vfs_extattr.c6
-rw-r--r--sys/kern/vfs_syscalls.c6
-rw-r--r--sys/scsi/ch.c5
-rw-r--r--sys/sys/vnode.h4
-rw-r--r--sys/ufs/ufs/ufs_vnops.c7
-rw-r--r--sys/vm/vm_page.h6
10 files changed, 30 insertions, 29 deletions
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c
index 5ce5c03..6337fde 100644
--- a/sys/dev/mse/mse.c
+++ b/sys/dev/mse/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.5 1994/08/02 07:39:39 davidg Exp $
+ * $Id: mse.c,v 1.6 1994/08/13 03:50:10 wollman Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -45,10 +45,10 @@
#include "mse.h"
#if NMSE > 0
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <sys/buf.h>
-#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/ioctl.h>
#include <sys/tty.h>
diff --git a/sys/i386/isa/ctx.c b/sys/i386/isa/ctx.c
index 7a14059..8930d27 100644
--- a/sys/i386/isa/ctx.c
+++ b/sys/i386/isa/ctx.c
@@ -8,7 +8,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: ctx.c,v 1.1 1994/10/01 17:59:41 davidg Exp $
+ * $Id: ctx.c,v 1.2 1994/10/19 01:58:55 wollman Exp $
*/
/*
@@ -119,10 +119,11 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
+#include <sys/devconf.h>
-#include "isa.h"
-#include "isa_device.h"
-#include "ctxreg.h"
+#include <i386/isa/isa.h>
+#include <i386/isa/isa_device.h>
+#include <i386/isa/ctxreg.h>
#include <machine/ioctl_ctx.h>
int waitvb(short);
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c
index 82d3e8c..c0f52a2 100644
--- a/sys/i386/isa/if_el.c
+++ b/sys/i386/isa/if_el.c
@@ -6,7 +6,7 @@
*
* Questions, comments, bug reports and fixes to kimmel@cs.umass.edu.
*
- * $Id: if_el.c,v 1.5 1994/08/13 03:50:04 wollman Exp $
+ * $Id: if_el.c,v 1.6 1994/10/19 01:58:59 wollman Exp $
*/
/* Except of course for the portions of code lifted from other FreeBSD
* drivers (mainly elread, elget and el_ioctl)
@@ -84,7 +84,7 @@ void elintr(int);
int el_ioctl(struct ifnet *,int,caddr_t);
int el_probe(struct isa_device *);
void el_start(struct ifnet *);
-void el_reset(int,int);
+void el_reset(int);
void el_watchdog(int);
static void el_stop(int);
@@ -238,7 +238,7 @@ int el_attach(struct isa_device *idev)
}
/* This routine resets the interface. */
-void el_reset(int unit,int uban)
+void el_reset(int unit)
{
int s;
@@ -827,6 +827,6 @@ void el_watchdog(int unit)
log(LOG_ERR,"el%d: device timeout\n",unit);
sc->arpcom.ac_if.if_oerrors++;
- el_reset(unit,0);
+ el_reset(unit);
}
#endif
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 5ce5c03..6337fde 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.5 1994/08/02 07:39:39 davidg Exp $
+ * $Id: mse.c,v 1.6 1994/08/13 03:50:10 wollman Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -45,10 +45,10 @@
#include "mse.h"
#if NMSE > 0
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <sys/buf.h>
-#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/ioctl.h>
#include <sys/tty.h>
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index d6e4dc8..c730946 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
- * $Id: vfs_syscalls.c,v 1.13 1994/10/11 20:40:12 sos Exp $
+ * $Id: vfs_syscalls.c,v 1.14 1994/10/15 02:53:26 phk Exp $
*/
#include <sys/param.h>
@@ -337,10 +337,6 @@ sync(p, uap, retval)
vfs_unbusy(mp);
}
}
-#ifdef DIAGNOSTIC
- if (syncprt)
- vfs_bufstats();
-#endif /* DIAGNOSTIC */
return (0);
}
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index d6e4dc8..c730946 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
- * $Id: vfs_syscalls.c,v 1.13 1994/10/11 20:40:12 sos Exp $
+ * $Id: vfs_syscalls.c,v 1.14 1994/10/15 02:53:26 phk Exp $
*/
#include <sys/param.h>
@@ -337,10 +337,6 @@ sync(p, uap, retval)
vfs_unbusy(mp);
}
}
-#ifdef DIAGNOSTIC
- if (syncprt)
- vfs_bufstats();
-#endif /* DIAGNOSTIC */
return (0);
}
diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c
index be01e80..ea7a168 100644
--- a/sys/scsi/ch.c
+++ b/sys/scsi/ch.c
@@ -2,7 +2,7 @@
* Written by grefen@?????
* Based on scsi drivers by Julian Elischer (julian@tfs.com)
*
- * $Id: ch.c,v 1.8 1994/01/29 10:30:36 rgrimes Exp $
+ * $Id: ch.c,v 1.9 1994/10/19 00:09:44 wollman Exp $
*/
#include <sys/types.h>
@@ -17,6 +17,7 @@
#include <sys/proc.h>
#include <sys/user.h>
#include <sys/chio.h>
+#include <sys/malloc.h>
#include <scsi/scsi_all.h>
#include <scsi/scsi_changer.h>
@@ -88,7 +89,7 @@ static int
ch_externalize(struct proc *p, struct kern_devconf *kdc, void *userp,
size_t len)
{
- return scsi_externalize(sd_data[kdc->kdc_unit]->sc_link, userp, &len);
+ return scsi_externalize(ch_data[kdc->kdc_unit].sc_link, userp, &len);
}
static struct kern_devconf kdc_ch_template = {
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 753ed13..11e16fb 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vnode.h 8.7 (Berkeley) 2/4/94
- * $Id: vnode.h,v 1.11 1994/10/05 09:48:39 davidg Exp $
+ * $Id: vnode.h,v 1.12 1994/10/08 22:23:00 phk Exp $
*/
#ifndef _SYS_VNODE_H_
@@ -200,9 +200,7 @@ extern int vttoif_tab[];
#define VREF(vp) vref(vp)
void holdrele __P((struct vnode *));
-void vattr_null __P((struct vattr *));
void vhold __P((struct vnode *));
-void vref __P((struct vnode *));
#else
#define HOLDRELE(vp) (vp)->v_holdcnt-- /* decrease buf or page ref */
#define VATTR_NULL(vap) (*(vap) = va_null) /* initialize a vattr */
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 6c58d2c..4651b87 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94
- * $Id: ufs_vnops.c,v 1.10 1994/10/08 06:57:29 phk Exp $
+ * $Id: ufs_vnops.c,v 1.11 1994/10/15 04:14:23 ache Exp $
*/
#include <sys/param.h>
@@ -1523,6 +1523,9 @@ ufs_lock(ap)
struct vnode *a_vp;
} */ *ap;
{
+#ifdef DIAGNOSTIC
+ struct proc *p = curproc; /* XXX */
+#endif
register struct vnode *vp = ap->a_vp;
register struct inode *ip;
@@ -1575,6 +1578,8 @@ ufs_unlock(ap)
register struct inode *ip = VTOI(ap->a_vp);
#ifdef DIAGNOSTIC
+ struct proc *p = curproc; /* XXX */
+
if ((ip->i_flag & IN_LOCKED) == 0) {
vprint("ufs_unlock: unlocked inode", ap->a_vp);
panic("ufs_unlock NOT LOCKED");
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index cfbfce2..c86c98e 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_page.h,v 1.7 1994/10/05 09:48:44 davidg Exp $
+ * $Id: vm_page.h,v 1.8 1994/10/17 10:43:56 davidg Exp $
*/
/*
@@ -261,6 +261,10 @@ vm_page_hold(mem)
mem->hold_count++;
}
+#ifdef DIAGNOSTIC
+#include <sys/systm.h> /* make GCC shut up */
+#endif
+
static inline void
vm_page_unhold(mem)
vm_page_t mem;
OpenPOWER on IntegriCloud