summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-07-26 03:36:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-07-26 03:36:20 +0000
commit9b60fe22327290b3fb1aa17a11990328111e0c2f (patch)
tree3c9cf8f6c644db6476ff0a97e75f66a4da64e207 /sys/dev/ic
parent456adfd52fb2339e698d21462dbd7ce53309b242 (diff)
uha_init_mscp() is unused.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/uha.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/sys/dev/ic/uha.c b/sys/dev/ic/uha.c
index 1469f972d6e..58b35570398 100644
--- a/sys/dev/ic/uha.c
+++ b/sys/dev/ic/uha.c
@@ -1,12 +1,7 @@
-/* $OpenBSD: uha.c,v 1.24 2014/09/14 14:17:25 jsg Exp $ */
+/* $OpenBSD: uha.c,v 1.25 2017/07/26 03:36:19 deraadt Exp $ */
/* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */
#undef UHADEBUG
-#ifdef DDB
-#define integrate
-#else
-#define integrate static inline
-#endif
/*
* Copyright (c) 1994, 1996 Charles M. Hannum. All rights reserved.
@@ -81,9 +76,8 @@
#define KVTOPHYS(x) vtophys((vaddr_t)x)
-integrate void uha_reset_mscp(struct uha_softc *, struct uha_mscp *);
+void uha_reset_mscp(struct uha_softc *, struct uha_mscp *);
void uha_mscp_free(void *, void *);
-integrate void uha_init_mscp(struct uha_softc *, struct uha_mscp *);
void *uha_mscp_alloc(void *);
void uhaminphys(struct buf *, struct scsi_link *);
void uha_scsi_cmd(struct scsi_xfer *);
@@ -149,7 +143,7 @@ uha_attach(sc)
config_found(&sc->sc_dev, &saa, uhaprint);
}
-integrate void
+void
uha_reset_mscp(sc, mscp)
struct uha_softc *sc;
struct uha_mscp *mscp;
@@ -175,25 +169,6 @@ uha_mscp_free(xsc, xmscp)
mtx_leave(&sc->sc_mscp_mtx);
}
-integrate void
-uha_init_mscp(sc, mscp)
- struct uha_softc *sc;
- struct uha_mscp *mscp;
-{
- int hashnum;
-
- bzero(mscp, sizeof(struct uha_mscp));
- /*
- * put in the phystokv hash table
- * Never gets taken out.
- */
- mscp->hashkey = KVTOPHYS(mscp);
- hashnum = MSCP_HASH(mscp->hashkey);
- mscp->nexthash = sc->sc_mscphash[hashnum];
- sc->sc_mscphash[hashnum] = mscp;
- uha_reset_mscp(sc, mscp);
-}
-
/*
* Get a free mscp
*/