summaryrefslogtreecommitdiffstats
path: root/sys/i386
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/i386
parentd356aa8b627cecbc5a3a5e98327366686498962d (diff)
downloadFreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.zip
FreeBSD-src-57c3ebc617f6ed31240847c6fce74931a372824c.tar.gz
Clean up -Wunused warnings.
Reviewed by: bde
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/eisa/3c5x9.c4
-rw-r--r--sys/i386/eisa/aha1742.c3
-rw-r--r--sys/i386/eisa/bt74x.c4
-rw-r--r--sys/i386/eisa/eisaconf.c4
-rw-r--r--sys/i386/i386/perfmon.c3
-rw-r--r--sys/i386/i386/pmap.c7
-rw-r--r--sys/i386/i386/sys_machdep.c4
-rw-r--r--sys/i386/i386/trap.c5
-rw-r--r--sys/i386/ibcs2/ibcs2_ipc.c5
-rw-r--r--sys/i386/ibcs2/ibcs2_misc.c10
-rw-r--r--sys/i386/ibcs2/ibcs2_socksys.c2
-rw-r--r--sys/i386/ibcs2/imgact_coff.c12
-rw-r--r--sys/i386/isa/aha1542.c6
-rw-r--r--sys/i386/isa/b004.c12
-rw-r--r--sys/i386/isa/cy.c6
-rw-r--r--sys/i386/isa/gsc.c1
-rw-r--r--sys/i386/isa/if_ep.c7
-rw-r--r--sys/i386/isa/if_fe.c3
-rw-r--r--sys/i386/isa/if_ix.c4
-rw-r--r--sys/i386/isa/if_le.c3
-rw-r--r--sys/i386/isa/if_lnc.c2
-rw-r--r--sys/i386/isa/if_ze.c4
-rw-r--r--sys/i386/isa/if_zp.c4
-rw-r--r--sys/i386/isa/mcd.c4
-rw-r--r--sys/i386/isa/qcam.c3
-rw-r--r--sys/i386/isa/random_machdep.c4
-rw-r--r--sys/i386/isa/rc.c13
-rw-r--r--sys/i386/isa/si.c12
-rw-r--r--sys/i386/isa/sound/dmabuf.c3
-rw-r--r--sys/i386/isa/wd.c7
-rw-r--r--sys/i386/linux/linux_ioctl.c8
-rw-r--r--sys/i386/linux/linux_ipc.c3
-rw-r--r--sys/i386/linux/linux_misc.c5
-rw-r--r--sys/i386/linux/linux_sysvec.c3
34 files changed, 75 insertions, 105 deletions
diff --git a/sys/i386/eisa/3c5x9.c b/sys/i386/eisa/3c5x9.c
index bd1955f..43b317d 100644
--- a/sys/i386/eisa/3c5x9.c
+++ b/sys/i386/eisa/3c5x9.c
@@ -19,7 +19,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: 3c5x9.c,v 1.1 1996/02/26 01:01:37 gibbs Exp $
+ * $Id: 3c5x9.c,v 1.2 1996/02/28 17:18:55 gibbs Exp $
*/
#include "eisa.h"
@@ -127,7 +127,6 @@ ep_eisa_probe(void)
{
u_long iobase;
struct eisa_device *e_dev = NULL;
- int stat = 0;
int count;
count = 0;
@@ -204,7 +203,6 @@ ep_eisa_attach(e_dev)
resvaddr_t *ioport;
resvaddr_t *eisa_ioport;
u_char level_intr;
- u_short conf;
int i;
/*
diff --git a/sys/i386/eisa/aha1742.c b/sys/i386/eisa/aha1742.c
index d439e11..d8fdf78 100644
--- a/sys/i386/eisa/aha1742.c
+++ b/sys/i386/eisa/aha1742.c
@@ -14,7 +14,7 @@
*
* commenced: Sun Sep 27 18:14:01 PDT 1992
*
- * $Id: aha1742.c,v 1.52 1996/03/10 07:04:26 gibbs Exp $
+ * $Id: aha1742.c,v 1.53 1996/05/22 00:03:50 dima Exp $
*/
#include <sys/types.h>
@@ -709,7 +709,6 @@ ahbintr(arg)
int target;
long int mboxval;
int port;
- int unit;
ahb = (struct ahb_data *)arg;
port = ahb->baseport;
diff --git a/sys/i386/eisa/bt74x.c b/sys/i386/eisa/bt74x.c
index 462061c..28ab275 100644
--- a/sys/i386/eisa/bt74x.c
+++ b/sys/i386/eisa/bt74x.c
@@ -19,7 +19,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: bt74x.c,v 1.4 1996/01/31 18:02:18 gibbs Exp $
+ * $Id: bt74x.c,v 1.5 1996/02/26 01:01:41 gibbs Exp $
*/
#include "eisa.h"
@@ -140,8 +140,6 @@ static int
bt_eisa_probe(void)
{
u_long iobase;
- char intdef;
- u_long irq;
struct eisa_device *e_dev = NULL;
int count;
diff --git a/sys/i386/eisa/eisaconf.c b/sys/i386/eisa/eisaconf.c
index 37f1697..7a71910 100644
--- a/sys/i386/eisa/eisaconf.c
+++ b/sys/i386/eisa/eisaconf.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: eisaconf.c,v 1.18 1996/04/07 17:03:12 bde Exp $
+ * $Id: eisaconf.c,v 1.19 1996/04/20 21:21:49 gibbs Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -673,8 +673,6 @@ eisa_registerdev(e_dev, driver, kdc_template)
struct eisa_driver *driver;
struct kern_devconf *kdc_template;
{
- resvaddr_t *node;
-
e_dev->driver = driver; /* Driver now owns this device */
e_dev->kdc = (struct kern_devconf *)malloc(sizeof(struct kern_devconf),
M_DEVBUF, M_NOWAIT);
diff --git a/sys/i386/i386/perfmon.c b/sys/i386/i386/perfmon.c
index cde2455..02c5cab 100644
--- a/sys/i386/i386/perfmon.c
+++ b/sys/i386/i386/perfmon.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: perfmon.c,v 1.4 1996/03/28 21:00:29 wollman Exp $
+ * $Id: perfmon.c,v 1.5 1996/03/29 17:48:21 wollman Exp $
*/
#include <sys/param.h>
@@ -220,7 +220,6 @@ int
writectl5(int pmc)
{
quad_t newval = 0;
- quad_t oldtsc;
if (ctl_shadow[1] & (PMCF_EN << 16)) {
if (ctl_shadow[1] & (PMCF_USR << 16))
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index c96196d..46cf1a8 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.101 1996/06/07 02:36:08 dyson Exp $
+ * $Id: pmap.c,v 1.102 1996/06/08 06:48:27 dyson Exp $
*/
/*
@@ -725,7 +725,6 @@ pmap_release(pmap)
{
vm_page_t p,n,ptdpg;
vm_object_t object = pmap->pm_pteobj;
- int s;
if (object->ref_count != 1)
panic("pmap_release: pteobj reference count != 1");
@@ -1172,8 +1171,6 @@ pmap_remove_pte_mapping(pa)
{
register pv_entry_t pv, *ppv, npv;
register unsigned *pte;
- vm_offset_t va;
- int anyvalid = 0;
ppv = pa_to_pvh(pa);
@@ -1289,8 +1286,6 @@ pmap_protect(pmap, sva, eva, prot)
vm_offset_t sva, eva;
vm_prot_t prot;
{
- register unsigned *pte;
- register vm_offset_t va;
register unsigned *ptbase;
vm_offset_t pdnxt;
vm_offset_t ptpaddr;
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c
index 411cf67..f82b3f1 100644
--- a/sys/i386/i386/sys_machdep.c
+++ b/sys/i386/i386/sys_machdep.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
- * $Id: sys_machdep.c,v 1.14 1996/01/03 21:41:32 wollman Exp $
+ * $Id: sys_machdep.c,v 1.15 1996/03/03 01:57:44 jkh Exp $
*
*/
@@ -185,8 +185,6 @@ i386_set_ldt(p, args, retval)
int error = 0, i, n;
int largest_ld;
struct pcb *pcb = &p->p_addr->u_pcb;
- union descriptor desc;
- union descriptor *lp;
int s;
struct i386_set_ldt_args ua, *uap;
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index b81cfc1..7cf89d1 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.75 1996/03/28 05:40:57 dyson Exp $
+ * $Id: trap.c,v 1.76 1996/05/18 03:36:19 dyson Exp $
*/
/*
@@ -606,9 +606,6 @@ trap_pfault(frame, usermode)
ftype = VM_PROT_READ;
if (map != kernel_map) {
- vm_offset_t v;
- vm_page_t mpte;
-
/*
* Keep swapout from messing with us during this
* critical time.
diff --git a/sys/i386/ibcs2/ibcs2_ipc.c b/sys/i386/ibcs2/ibcs2_ipc.c
index e375ba0..778b8dc 100644
--- a/sys/i386/ibcs2/ibcs2_ipc.c
+++ b/sys/i386/ibcs2/ibcs2_ipc.c
@@ -70,8 +70,10 @@
static void cvt_msqid2imsqid __P((struct msqid_ds *, struct ibcs2_msqid_ds *));
static void cvt_imsqid2msqid __P((struct ibcs2_msqid_ds *, struct msqid_ds *));
+#ifdef unused
static void cvt_sem2isem __P((struct sem *, struct ibcs2_sem *));
static void cvt_isem2sem __P((struct ibcs2_sem *, struct sem *));
+#endif
static void cvt_semid2isemid __P((struct semid_ds *, struct ibcs2_semid_ds *));
static void cvt_isemid2semid __P((struct ibcs2_semid_ds *, struct semid_ds *));
static void cvt_shmid2ishmid __P((struct shmid_ds *, struct ibcs2_shmid_ds *));
@@ -172,7 +174,7 @@ ibcs2_msgsys(p, uap, retval)
/*
* iBCS2 semsys call
*/
-
+#ifdef unused
static void
cvt_sem2isem(bp, ibp)
struct sem *bp;
@@ -196,6 +198,7 @@ struct sem *bp;
bp->semzcnt = ibp->semzcnt;
return;
}
+#endif
static void
cvt_semid2isemid(bp, ibp)
diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c
index 44472d2..1b32a53 100644
--- a/sys/i386/ibcs2/ibcs2_misc.c
+++ b/sys/i386/ibcs2/ibcs2_misc.c
@@ -45,7 +45,7 @@
*
* @(#)sun_misc.c 8.1 (Berkeley) 6/18/93
*
- * $Id$
+ * $Id: ibcs2_misc.c,v 1.9 1995/10/23 19:46:51 swallace Exp $
*/
/*
@@ -112,12 +112,14 @@ ibcs2_ulimit(p, uap, retval)
struct ibcs2_ulimit_args *uap;
int *retval;
{
+#ifdef notyet
int error;
struct rlimit rl;
struct setrlimit_args {
int resource;
struct rlimit *rlp;
} sra;
+#endif
#define IBCS2_GETFSIZE 1
#define IBCS2_SETFSIZE 2
#define IBCS2_GETPSIZE 3
@@ -567,7 +569,7 @@ ibcs2_getgroups(p, uap, retval)
int *retval;
{
int error, i;
- ibcs2_gid_t igid, *iset;
+ ibcs2_gid_t *iset;
struct getgroups_args sa;
gid_t *gp;
caddr_t sg = stackgap_init();
@@ -596,7 +598,7 @@ ibcs2_setgroups(p, uap, retval)
int *retval;
{
int error, i;
- ibcs2_gid_t igid, *iset;
+ ibcs2_gid_t *iset;
struct setgroups_args sa;
gid_t *gp;
caddr_t sg = stackgap_init();
@@ -887,7 +889,7 @@ ibcs2_nice(p, uap, retval)
struct ibcs2_nice_args *uap;
int *retval;
{
- int error, cur_nice = p->p_nice;
+ int error;
struct setpriority_args sa;
SCARG(&sa, which) = PRIO_PROCESS;
diff --git a/sys/i386/ibcs2/ibcs2_socksys.c b/sys/i386/ibcs2/ibcs2_socksys.c
index a5527c4..b354014 100644
--- a/sys/i386/ibcs2/ibcs2_socksys.c
+++ b/sys/i386/ibcs2/ibcs2_socksys.c
@@ -68,8 +68,6 @@ ibcs2_socksys(p, uap, retval)
register struct ibcs2_socksys_args *uap;
int *retval;
{
- register struct filedesc *fdp = p->p_fd;
- register struct file *fp;
int error;
int realargs[7]; /* 1 for command, 6 for recvfrom */
void *passargs;
diff --git a/sys/i386/ibcs2/imgact_coff.c b/sys/i386/ibcs2/imgact_coff.c
index 3d0a0b5..4a8ef58b 100644
--- a/sys/i386/ibcs2/imgact_coff.c
+++ b/sys/i386/ibcs2/imgact_coff.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: imgact_coff.c,v 1.14 1996/03/12 06:20:19 peter Exp $
+ * $Id: imgact_coff.c,v 1.15 1996/05/01 02:42:12 bde Exp $
*/
#include <sys/param.h>
@@ -301,17 +301,11 @@ exec_coff_imgact(imgp)
struct scnhdr *scns;
int i;
struct vmspace *vmspace = imgp->proc->p_vmspace;
- unsigned long vmaddr;
int nscns;
- int error, len;
+ int error;
unsigned long text_offset = 0, text_address = 0, text_size = 0;
unsigned long data_offset = 0, data_address = 0, data_size = 0;
unsigned long bss_size = 0;
- int need_hack_p;
- unsigned long data_end;
- unsigned long data_map_start, data_map_len, data_map_addr = 0;
- unsigned long bss_address, bss_map_start, data_copy_len, bss_map_len;
- unsigned char *data_buf = 0;
caddr_t hole;
if (fhdr->f_magic != I386_COFF ||
@@ -372,7 +366,7 @@ exec_coff_imgact(imgp)
/* .bss section */
bss_size = scns[i].s_size;
} else if (scns[i].s_flags & STYP_LIB) {
- char *buf = 0, *ptr;
+ char *buf = 0;
int foff = trunc_page(scns[i].s_scnptr);
int off = scns[i].s_scnptr - foff;
int len = round_page(scns[i].s_size + PAGE_SIZE);
diff --git a/sys/i386/isa/aha1542.c b/sys/i386/isa/aha1542.c
index 5447efc..33a2378 100644
--- a/sys/i386/isa/aha1542.c
+++ b/sys/i386/isa/aha1542.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: aha1542.c,v 1.57 1996/03/31 18:19:38 gibbs Exp $
+ * $Id: aha1542.c,v 1.58 1996/04/07 17:32:08 bde Exp $
*/
/*
@@ -325,7 +325,10 @@ static struct aha_data {
static u_int32_t aha_adapter_info __P((int unit));
static int ahaattach __P((struct isa_device *dev));
+#ifdef TUNE_1542
static int aha_bus_speed_check __P((struct aha_data *aha, int speed));
+static int aha_set_bus_speed __P((struct aha_data *aha));
+#endif
static int aha_cmd __P((struct aha_data *aha, int icnt, int ocnt, int wait,
u_char *retval, u_char opcode, ...));
static void aha_done __P((struct aha_data *aha, struct aha_ccb *ccb));
@@ -341,7 +344,6 @@ static int aha_poll __P((struct aha_data *aha, struct scsi_xfer *xs,
static int ahaprobe __P((struct isa_device *dev));
static void aha_registerdev __P((struct isa_device *id));
static int32_t aha_scsi_cmd __P((struct scsi_xfer *xs));
-static int aha_set_bus_speed __P((struct aha_data *aha));
static timeout_t
aha_timeout;
static char *board_rev __P((struct aha_data *aha, int type));
diff --git a/sys/i386/isa/b004.c b/sys/i386/isa/b004.c
index 5b56a34..f0079a1 100644
--- a/sys/i386/isa/b004.c
+++ b/sys/i386/isa/b004.c
@@ -66,9 +66,6 @@
#include <i386/isa/isa_device.h>
-static u_char d_inb(u_int port);
-static void d_outb(u_int port, u_char data);
-
static struct kern_devconf kdc_bqu[NBQU] = { {
0, 0, 0, /* filled in by dev_attach */
"bqu", 0, { MDDT_ISA, 0 },
@@ -93,6 +90,9 @@ static struct kern_devconf kdc_bqu[NBQU] = { {
#undef B004_DEBUG_2
#ifdef B004_DEBUG
+static u_char d_inb(u_int port);
+static void d_outb(u_int port, u_char data);
+
#define out(port,data) d_outb(port, data)
#define in(a) d_inb(((u_int)a))
#else
@@ -150,7 +150,7 @@ b004_base_addresses[B004_CHANCE] = {
0x150, 0x190, 0, 0, 0, 0, 0, 0
};
-
+#ifdef B004_DEBUG
static void
d_outb(u_int port, u_char data)
{
@@ -159,13 +159,15 @@ d_outb(u_int port, u_char data)
outb(port,data);
}
-static u_char d_inb(u_int port)
+static u_char
+d_inb(u_int port)
{
u_char ap;
ap=inb(port);
printf("INPUT 0x%x FROM 0x%x\n",ap,port);
return(ap);
}
+#endif
static int
detected(int base)
diff --git a/sys/i386/isa/cy.c b/sys/i386/isa/cy.c
index 5ebc51a..a4b8034 100644
--- a/sys/i386/isa/cy.c
+++ b/sys/i386/isa/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.31 1996/03/27 20:03:23 bde Exp $
+ * $Id: cy.c,v 1.32 1996/05/02 09:34:34 phk Exp $
*/
#include "cy.h"
@@ -343,7 +343,9 @@ static int sioattach __P((struct isa_device *dev));
static void cd1400_channel_cmd __P((cy_addr iobase, int cmd));
static timeout_t siodtrwakeup;
static void comhardclose __P((struct com_s *com));
+#if 0
static void siointr1 __P((struct com_s *com));
+#endif
static int commctl __P((struct com_s *com, int bits, int how));
static int comparam __P((struct tty *tp, struct termios *t));
static int sioprobe __P((struct isa_device *dev));
@@ -1352,11 +1354,13 @@ cont:
schedsofttty();
}
+#if 0
static void
siointr1(com)
struct com_s *com;
{
}
+#endif
static int
sioioctl(dev, cmd, data, flag, p)
diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c
index 430a44b..8e98fc2 100644
--- a/sys/i386/isa/gsc.c
+++ b/sys/i386/isa/gsc.c
@@ -484,7 +484,6 @@ gscattach(struct isa_device *isdp)
{
int unit = isdp->id_unit;
struct gsc_unit *scu = unittab + unit;
- char name[32];
scu->flags |= FLAG_DEBUG;
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index aecba9b..a6a24df 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/if_ep.c
@@ -38,7 +38,7 @@
*/
/*
- * $Id: if_ep.c,v 1.43 1996/02/28 17:19:03 gibbs Exp $
+ * $Id: if_ep.c,v 1.44 1996/05/24 15:22:36 gibbs Exp $
*
* Promiscuous mode added and interrupt logic slightly changed
* to reduce the number of adapter failures. Transceiver select
@@ -196,7 +196,7 @@ static struct ep_board *
ep_look_for_board_at(is)
struct isa_device *is;
{
- int data, i, j, io_base, id_port = ELINK_ID_PORT;
+ int data, i, j, id_port = ELINK_ID_PORT;
int count = 0;
if (ep_current_tag == (EP_LAST_TAG + 1)) {
@@ -364,7 +364,6 @@ ep_isa_probe(is)
struct ep_softc *sc;
struct ep_board *epb;
u_short k;
- int i;
if(( epb=ep_look_for_board_at(is) )==0)
return (0);
@@ -573,7 +572,7 @@ epinit(sc)
struct ep_softc *sc;
{
register struct ifnet *ifp = &sc->arpcom.ac_if;
- int s, i, j;
+ int s, i;
/*
if (ifp->if_addrlist == (struct ifaddr *) 0)
diff --git a/sys/i386/isa/if_fe.c b/sys/i386/isa/if_fe.c
index 073379f..eb7ec89 100644
--- a/sys/i386/isa/if_fe.c
+++ b/sys/i386/isa/if_fe.c
@@ -21,7 +21,7 @@
*/
/*
- * $Id: if_fe.c,v 1.13 1996/04/07 17:50:09 bde Exp $
+ * $Id: if_fe.c,v 1.14 1996/04/23 18:36:55 nate Exp $
*
* Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
* To be used with FreeBSD 2.x
@@ -2632,7 +2632,6 @@ fe_write_mbufs ( struct fe_softc *sc, struct mbuf *m )
{
u_short addr_bmpr8 = sc->ioaddr[ FE_BMPR8 ];
u_short length, len;
- short pad;
struct mbuf *mp;
u_char *data;
u_short savebyte; /* WARNING: Architecture dependent! */
diff --git a/sys/i386/isa/if_ix.c b/sys/i386/isa/if_ix.c
index 9f081cc..9a33ebd 100644
--- a/sys/i386/isa/if_ix.c
+++ b/sys/i386/isa/if_ix.c
@@ -28,7 +28,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ix.c,v 1.18 1996/01/26 09:27:27 phk Exp $
+ * $Id: if_ix.c,v 1.19 1996/02/06 18:50:46 wollman Exp $
*/
#include "ix.h"
@@ -567,8 +567,6 @@ ixattach(struct isa_device *dvp) {
int unit = dvp->id_unit;
ix_softc_t *sc = &ix_softc[unit];
struct ifnet *ifp = &sc->arpcom.ac_if;
- struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
DEBUGBEGIN(DEBUGATTACH)
DEBUGDO(printf("ixattach:");)
diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c
index 5371061..513ea29 100644
--- a/sys/i386/isa/if_le.c
+++ b/sys/i386/isa/if_le.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_le.c,v 1.30 1996/02/06 18:50:47 wollman Exp $
+ * $Id: if_le.c,v 1.31 1996/03/23 19:34:12 fenner Exp $
*/
/*
@@ -390,7 +390,6 @@ le_attach(
{
le_softc_t *sc = &le_softc[dvp->id_unit];
struct ifnet *ifp = &sc->le_if;
- struct ifaddr *ifa = ifp->if_addrlist;
ifp->if_softc = sc;
ifp->if_mtu = ETHERMTU;
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c
index 3e060a4..46afc70 100644
--- a/sys/i386/isa/if_lnc.c
+++ b/sys/i386/isa/if_lnc.c
@@ -126,7 +126,9 @@ static struct lnc_softc {
LNCSTATS_STRUCT
} lnc_softc[NLNC];
+#ifdef LNC_MULTICAST
static void lnc_setladrf __P((struct lnc_softc *sc));
+#endif
static void lnc_stop __P((int unit));
static void lnc_reset __P((int unit));
static void lnc_free_mbufs __P((struct lnc_softc *sc));
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c
index 53330a0..45d6315 100644
--- a/sys/i386/isa/if_ze.c
+++ b/sys/i386/isa/if_ze.c
@@ -47,7 +47,7 @@
*/
/*
- * $Id: if_ze.c,v 1.28 1996/01/26 09:27:33 phk Exp $
+ * $Id: if_ze.c,v 1.29 1996/02/06 18:50:50 wollman Exp $
*/
#include "ze.h"
@@ -581,8 +581,6 @@ ze_attach(isa_dev)
{
struct ze_softc *sc = &ze_softc[isa_dev->id_unit];
struct ifnet *ifp = &sc->arpcom.ac_if;
- struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
int pl;
/* PCMCIA card can be offlined. Reconfiguration is required */
diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c
index 242e27e..f5d53fe 100644
--- a/sys/i386/isa/if_zp.c
+++ b/sys/i386/isa/if_zp.c
@@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $
- * $Id: if_zp.c,v 1.18 1996/03/23 21:32:39 nate Exp $
+ * $Id: if_zp.c,v 1.19 1996/06/04 21:41:01 nate Exp $
*/
/*-
* TODO:
@@ -477,8 +477,6 @@ zpattach(isa_dev)
struct zp_softc *sc = &zp_softc[isa_dev->id_unit];
struct ifnet *ifp = &sc->arpcom.ac_if;
u_short i;
- struct ifaddr *ifa;
- struct sockaddr_dl *sdl;
int pl;
/* PCMCIA card can be offlined. Reconfiguration is required */
diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c
index 96eccec..f13b72a 100644
--- a/sys/i386/isa/mcd.c
+++ b/sys/i386/isa/mcd.c
@@ -40,9 +40,9 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: mcd.c,v 1.78 1996/05/03 16:49:02 phk Exp $
+ * $Id: mcd.c,v 1.79 1996/06/08 09:18:21 bde Exp $
*/
-static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
+static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";
#include "mcd.h"
#if NMCD > 0
diff --git a/sys/i386/isa/qcam.c b/sys/i386/isa/qcam.c
index 2ff00c6..837b391d 100644
--- a/sys/i386/isa/qcam.c
+++ b/sys/i386/isa/qcam.c
@@ -154,9 +154,6 @@ qcam_registerdev (struct isa_device *id)
static int
qcam_probe (struct isa_device *devp)
{
- u_char reg, last;
- int i, transitions = 0;
-
switch (devp->id_iobase) { /* don't probe weird ports */
case IO_LPT1:
case IO_LPT2:
diff --git a/sys/i386/isa/random_machdep.c b/sys/i386/isa/random_machdep.c
index f2f51a9..8944a9d 100644
--- a/sys/i386/isa/random_machdep.c
+++ b/sys/i386/isa/random_machdep.c
@@ -1,7 +1,7 @@
/*
* random_machdep.c -- A strong random number generator
*
- * $Id: random_machdep.c,v 1.6 1996/04/07 18:16:26 bde Exp $
+ * $Id: random_machdep.c,v 1.7 1996/06/08 08:18:00 bde Exp $
*
* Version 0.95, last modified 18-Oct-95
*
@@ -98,7 +98,9 @@ static u_int32_t random_pool[POOLWORDS];
static struct timer_rand_state keyboard_timer_state;
static struct timer_rand_state extract_timer_state;
static struct timer_rand_state irq_timer_state[ICU_LEN];
+#ifdef notyet
static struct timer_rand_state blkdev_timer_state[MAX_BLKDEV];
+#endif
static struct wait_queue *random_wait;
inthand2_t *sec_intr_handler[ICU_LEN];
diff --git a/sys/i386/isa/rc.c b/sys/i386/isa/rc.c
index d05b423..b9bd2c4 100644
--- a/sys/i386/isa/rc.c
+++ b/sys/i386/isa/rc.c
@@ -152,7 +152,7 @@ static int rc_scheduled_event = 0;
/* for pstat -t */
static struct tty rc_tty[NRC * CD180_NCHAN];
-static int nrc_tty = NRC * CD180_NCHAN;
+static const int nrc_tty = NRC * CD180_NCHAN;
/* Flags */
#define RC_DTR_OFF 0x0001 /* DTR wait, for close/open */
@@ -258,7 +258,7 @@ static int
rcattach(dvp)
struct isa_device *dvp;
{
- register int i, chan, nec = dvp->id_iobase;
+ register int chan, nec = dvp->id_iobase;
struct rc_softc *rcb = &rc_softc[dvp->id_unit];
struct rc_chans *rc = &rc_chans[dvp->id_unit * CD180_NCHAN];
static int rc_wakeup_started = 0;
@@ -595,9 +595,8 @@ void rcpoll()
register struct rc_chans *rc;
register struct rc_softc *rcb;
register u_char *tptr, *eptr;
- register int s;
register struct tty *tp;
- register int chan, icnt, c, nec, unit;
+ register int chan, icnt, nec, unit;
if (rc_scheduled_event == 0)
return;
@@ -1110,7 +1109,7 @@ static void rc_reinit(rcb)
struct rc_softc *rcb;
{
register struct rc_chans *rc, *rce;
- register int i, nec;
+ register int nec;
nec = rcb->rcb_addr;
rc_hwreset(rcb->rcb_unit, nec, RC_FAKEID);
@@ -1272,7 +1271,7 @@ int rc_test(nec, unit)
register int nec;
int unit;
{
- int chan = 0, nopt = 0;
+ int chan = 0;
int i = 0, rcnt, old_level;
unsigned int iack, chipid;
unsigned short divs;
@@ -1482,8 +1481,6 @@ static void
rc_wakeup(chan)
void *chan;
{
- int unit;
-
timeout(rc_wakeup, (caddr_t)NULL, 1);
if (rc_scheduled_event != 0) {
diff --git a/sys/i386/isa/si.c b/sys/i386/isa/si.c
index b9498c4..076f12e 100644
--- a/sys/i386/isa/si.c
+++ b/sys/i386/isa/si.c
@@ -30,13 +30,13 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.41 1996/05/30 23:41:35 peter Exp $
+ * $Id: si.c,v 1.42 1996/06/08 10:18:12 peter Exp $
*/
#ifndef lint
-static char si_copyright1[] = "@(#) (C) Specialix International, 1990,1992",
- si_copyright2[] = "@(#) (C) Andy Rutter 1993",
- si_copyright3[] = "@(#) (C) Peter Wemm 1995";
+static const char si_copyright1[] = "@(#) (C) Specialix International, 1990,1992",
+ si_copyright2[] = "@(#) (C) Andy Rutter 1993",
+ si_copyright3[] = "@(#) (C) Peter Wemm 1995";
#endif /* not lint */
#include <sys/param.h>
@@ -234,7 +234,6 @@ static int si_pollrate; /* in addition to irq */
SYSCTL_INT(_machdep, OID_AUTO, si_pollrate, CTLFLAG_RD, &si_pollrate, 0, "");
static int init_finished = 0;
-static int fastpoll = 0;
static void si_poll __P((void *));
#endif
@@ -494,9 +493,6 @@ siattach(id)
struct speedtab *spt;
int nmodule, nport, x, y;
int uart_type;
-#ifdef DEVFS
- char name[32];
-#endif
DPRINT((0, DBG_AUTOBOOT, "si%d: siattach\n", id->id_unit));
diff --git a/sys/i386/isa/sound/dmabuf.c b/sys/i386/isa/sound/dmabuf.c
index b0a6d1f..bb64d7d 100644
--- a/sys/i386/isa/sound/dmabuf.c
+++ b/sys/i386/isa/sound/dmabuf.c
@@ -678,8 +678,9 @@ DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
{
int chan = audio_devs[dev]->dmachan;
struct dma_buffparms *dmap = audio_devs[dev]->dmap;
+#ifdef linux
unsigned long flags;
-
+#endif
/*
* This function is not as portable as it should be.
*/
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c
index d508982..df8b99b 100644
--- a/sys/i386/isa/wd.c
+++ b/sys/i386/isa/wd.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
- * $Id: wd.c,v 1.108 1996/05/03 14:57:27 phk Exp $
+ * $Id: wd.c,v 1.109 1996/06/08 10:03:35 bde Exp $
*/
/* TODO:
@@ -282,7 +282,9 @@ static int wdcontrol(struct buf *bp);
static int wdcommand(struct disk *du, u_int cylinder, u_int head,
u_int sector, u_int count, u_int command);
static int wdsetctlr(struct disk *du);
+#if 0
static int wdwsetctlr(struct disk *du);
+#endif
static int wdgetctlr(struct disk *du);
static void wderror(struct buf *bp, struct disk *du, char *mesg);
static void wdflushirq(struct disk *du, int old_ipl);
@@ -731,7 +733,6 @@ wdstart(int ctrlr)
if (wdtab[ctrlr].b_active)
return;
#endif
-loop:
/* is there a drive for the controller to do a transfer with? */
bp = wdtab[ctrlr].controller_queue.tqh_first;
if (bp == NULL) {
@@ -1452,6 +1453,7 @@ wdsetctlr(struct disk *du)
return (0);
}
+#if 0
/*
* Wait until driver is inactive, then set up controller.
*/
@@ -1468,6 +1470,7 @@ wdwsetctlr(struct disk *du)
splx(x);
return (stat);
}
+#endif
/*
* issue READP to drive to ask it what it is.
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c
index 9c9c668..821d844 100644
--- a/sys/i386/linux/linux_ioctl.c
+++ b/sys/i386/linux/linux_ioctl.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_ioctl.c,v 1.8 1996/03/04 11:15:19 peter Exp $
+ * $Id: linux_ioctl.c,v 1.9 1996/03/10 22:30:53 peter Exp $
*/
#include <sys/param.h>
@@ -122,7 +122,7 @@ static void
bsd_to_linux_termios(struct termios *bsd_termios,
struct linux_termios *linux_termios)
{
- int i, speed;
+ int i;
#ifdef DEBUG
printf("LINUX: BSD termios structure (input):\n");
@@ -263,7 +263,7 @@ static void
linux_to_bsd_termios(struct linux_termios *linux_termios,
struct termios *bsd_termios)
{
- int i, speed;
+ int i;
#ifdef DEBUG
printf("LINUX: LINUX termios structure (input):\n");
printf("i=%08x o=%08x c=%08x l=%08x line=%d\n",
@@ -451,10 +451,8 @@ int
linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
{
struct termios bsd_termios;
- struct winsize bsd_winsize;
struct linux_termios linux_termios;
struct linux_termio linux_termio;
- struct linux_winsize linux_winsize;
struct filedesc *fdp = p->p_fd;
struct file *fp;
int (*func)(struct file *fp, int com, caddr_t data, struct proc *p);
diff --git a/sys/i386/linux/linux_ipc.c b/sys/i386/linux/linux_ipc.c
index 854766b..72ebd20 100644
--- a/sys/i386/linux/linux_ipc.c
+++ b/sys/i386/linux/linux_ipc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_ipc.c,v 1.6 1996/01/08 04:34:54 peter Exp $
+ * $Id: linux_ipc.c,v 1.7 1996/03/02 19:37:56 peter Exp $
*/
@@ -44,7 +44,6 @@ static int linux_semget __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_semctl __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_msgsnd __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_msgrcv __P((struct proc *, struct linux_ipc_args *, int *));
-static int linux_msgop __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_msgctl __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_shmat __P((struct proc *, struct linux_ipc_args *, int *));
static int linux_shmdt __P((struct proc *, struct linux_ipc_args *, int *));
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c
index 6112771..f412cf0 100644
--- a/sys/i386/linux/linux_misc.c
+++ b/sys/i386/linux/linux_misc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.18 1996/04/07 17:38:49 bde Exp $
+ * $Id: linux_misc.c,v 1.19 1996/05/02 10:43:13 phk Exp $
*/
#include <sys/param.h>
@@ -166,7 +166,6 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval)
unsigned long file_offset;
vm_offset_t buffer;
unsigned long bss_size;
- char *ptr;
int error;
caddr_t sg;
int locked;
@@ -683,7 +682,7 @@ linux_times(struct proc *p, struct linux_times_args *args, int *retval)
struct timeval tv;
struct linux_times_argv tms;
struct rusage ru;
- int error, s;
+ int error;
#ifdef DEBUG
printf("Linux-emul(%d): times(*)\n", p->p_pid);
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 0630156..07abfbe 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_sysvec.c,v 1.4 1996/03/17 14:31:58 peter Exp $
+ * $Id: linux_sysvec.c,v 1.5 1996/05/01 06:31:18 jkh Exp $
*/
/* XXX we use functions that might not exist. */
@@ -361,7 +361,6 @@ linux_sigreturn(p, args, retval)
void
linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, caddr_t *params)
{
- int i;
args[0] = tf->tf_ebx;
args[1] = tf->tf_ecx;
args[2] = tf->tf_edx;
OpenPOWER on IntegriCloud