summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-06-12 05:11:41 +0000
commit57c3ebc617f6ed31240847c6fce74931a372824c (patch)
treec727af841ff654969571e10a8dc92e2a987cd0c2 /sys/pci
parentd356aa8b627cecbc5a3a5e98327366686498962d (diff)
downloadFreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.zip
FreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.tar.gz
Clean up -Wunused warnings.
Reviewed by: bde
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_vx.c2
-rw-r--r--sys/pci/meteor.c5
-rw-r--r--sys/pci/ncr.c6
3 files changed, 7 insertions, 6 deletions
diff --git a/sys/pci/if_vx.c b/sys/pci/if_vx.c
index 1575799..f0e86e1 100644
--- a/sys/pci/if_vx.c
+++ b/sys/pci/if_vx.c
@@ -189,8 +189,6 @@ vx_pci_attach(
struct ifnet *ifp;
u_short i, *p;
u_long j;
- struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
if (unit >= NVX) {
printf("vx%d: not configured; kernel is built for only %d device%s.\n",
diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c
index b26154f..2f2917f 100644
--- a/sys/pci/meteor.c
+++ b/sys/pci/meteor.c
@@ -1089,6 +1089,7 @@ met_attach(pcici_t tag, int unit)
#define UNIT(x) ((x) & 0x07)
+#ifdef unused
static int
meteor_reset(dev_t dev)
{
@@ -1112,7 +1113,7 @@ struct saa7116_regs *m;
return 0;
}
-
+#endif
/*---------------------------------------------------------
**
@@ -1171,7 +1172,9 @@ meteor_close(dev_t dev, int flags, int fmt, struct proc *p)
{
meteor_reg_t *mtr;
int unit;
+#ifdef METEOR_DEALLOC_ABOVE
int temp;
+#endif
unit = UNIT(minor(dev));
if (unit >= NMETEOR) /* unit out of range */
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 489ed3d0..528584b 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.71 1996/05/02 14:20:47 phk Exp $
+** $Id: ncr.c,v 1.72 1996/05/03 21:01:38 phk Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -1254,9 +1254,9 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.71 1996/05/02 14:20:47 phk Exp $\n";
+ "\n$Id: ncr.c,v 1.72 1996/05/03 21:01:38 phk Exp $\n";
-static u_long ncr_version = NCR_VERSION * 11
+static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
+ (u_long) sizeof (struct ccb) * 5
+ (u_long) sizeof (struct lcb) * 3
OpenPOWER on IntegriCloud