From 9b078d43a64bd7278ccd3f74ebe462507851d598 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 16 Mar 2006 21:36:59 +0000 Subject: 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. --- sys/dev/pci/if_lmc.c | 13 ++++++++++++- sys/dev/pci/if_lmcvar.h | 13 +------------ 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'sys') 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, -- cgit v1.2.3