diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-16 21:36:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-03-16 21:36:59 +0000 |
commit | 9b078d43a64bd7278ccd3f74ebe462507851d598 (patch) | |
tree | 09e74b9ea8436ec9b292191aedd93c90b51a6ac3 | |
parent | 0ae0e8ee2e515d744c64660670bf020e8c27e254 (diff) |
Move lmc_system_errors[] so that there is only one instance of it in the
code instead of four; shaves more than 1KB off GENERIC.
-rw-r--r-- | sys/dev/pci/if_lmc.c | 13 | ||||
-rw-r--r-- | sys/dev/pci/if_lmcvar.h | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index ac693eaefdb..86b02a7abf9 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.20 2005/11/07 00:29:21 brad Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.21 2006/03/16 21:36:58 miod Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -815,6 +815,17 @@ lmc_print_abnormal_interrupt (lmc_softc_t * const sc, u_int32_t csr) printf(LMC_PRINTF_FMT ": Abnormal interrupt\n", LMC_PRINTF_ARGS); } +static const char * const lmc_system_errors[] = { + "parity error", + "master abort", + "target abort", + "reserved #3", + "reserved #4", + "reserved #5", + "reserved #6", + "reserved #7", +}; + static void lmc_intr_handler(lmc_softc_t * const sc, int *progress_p) { diff --git a/sys/dev/pci/if_lmcvar.h b/sys/dev/pci/if_lmcvar.h index 5248f169072..812c4c976ea 100644 --- a/sys/dev/pci/if_lmcvar.h +++ b/sys/dev/pci/if_lmcvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmcvar.h,v 1.8 2005/11/07 00:29:21 brad Exp $ */ +/* $OpenBSD: if_lmcvar.h,v 1.9 2006/03/16 21:36:58 miod Exp $ */ /* $NetBSD: if_lmcvar.h,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -424,17 +424,6 @@ struct lmc___softc { #define LMC_HAVE_STOREFWD 0x00008000 /* have CMD_STOREFWD */ #define LMC_HAVE_SIA100 0x00010000 /* has LS100 in SIA status */ -static const char * const lmc_system_errors[] = { - "parity error", - "master abort", - "target abort", - "reserved #3", - "reserved #4", - "reserved #5", - "reserved #6", - "reserved #7", -}; - #if 0 static const char * const lmc_status_bits[] = { NULL, |