From 9f00895f820b75063b95c7bdef965c6322329ad8 Mon Sep 17 00:00:00 2001 From: Peter Avalos Date: Sat, 7 Jul 2007 01:06:07 +0000 Subject: [PATCH] -Wundef fixes. Obtained-from: FreeBSD --- sys/dev/disk/aic7xxx/aic79xx.c | 18 +++++++++--------- sys/dev/disk/aic7xxx/aic79xx_osm.c | 8 ++++---- sys/dev/disk/aic7xxx/aic79xx_osm.h | 6 +++--- sys/dev/disk/aic7xxx/aic79xx_pci.c | 6 +++--- sys/dev/disk/aic7xxx/aic7xxx_osm.c | 8 ++++---- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/sys/dev/disk/aic7xxx/aic79xx.c b/sys/dev/disk/aic7xxx/aic79xx.c index acc471a51f..1e0e0e9c40 100644 --- a/sys/dev/disk/aic7xxx/aic79xx.c +++ b/sys/dev/disk/aic7xxx/aic79xx.c @@ -39,8 +39,8 @@ * * $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#246 $ * - * $FreeBSD: src/sys/dev/aic7xxx/aic79xx.c,v 1.37 2005/09/22 05:06:03 gibbs Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx.c,v 1.27 2007/07/07 00:37:46 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/aic79xx.c,v 1.38 2005/12/04 02:12:40 ru Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx.c,v 1.28 2007/07/07 01:06:07 pavalos Exp $ */ #include "aic79xx_osm.h" @@ -169,7 +169,7 @@ static void ahd_handle_devreset(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, u_int lun, cam_status status, char *message, int verbose_level); -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE static void ahd_setup_target_msgin(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, struct scb *scb); @@ -1232,7 +1232,7 @@ ahd_handle_seqint(struct ahd_softc *ahd, u_int intstat) ahd->msgin_index = 0; } } -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE else { if (bus_phase == P_MESGOUT) { ahd->msg_type = @@ -5394,7 +5394,7 @@ ahd_free(struct ahd_softc *ahd) tstate = ahd->enabled_targets[i]; if (tstate != NULL) { -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE int j; for (j = 0; j < AHD_NUM_LUNS; j++) { @@ -5410,7 +5410,7 @@ ahd_free(struct ahd_softc *ahd) kfree(tstate, M_DEVBUF); } } -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE if (ahd->black_hole != NULL) { xpt_free_path(ahd->black_hole->path); kfree(ahd->black_hole, M_DEVBUF); @@ -6651,7 +6651,7 @@ ahd_chip_init(struct ahd_softc *ahd) ahd_outb(ahd, CLRSINT3, NTRAMPERR|OSRAMPERR); ahd_outb(ahd, CLRINT, CLRSCSIINT); -#if NEEDS_MORE_TESTING +#ifdef NEEDS_MORE_TESTING /* * Always enable abort on incoming L_Qs if this feature is * supported. We use this to catch invalid SCB references. @@ -7212,7 +7212,7 @@ ahd_match_scb(struct ahd_softc *ahd, struct scb *scb, int target, if (match != 0) match = ((lun == slun) || (lun == CAM_LUN_WILDCARD)); if (match != 0) { -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE int group; group = XPT_FC_GROUP(scb->io_ctx->ccb_h.func_code); @@ -7886,7 +7886,7 @@ ahd_reset_channel(struct ahd_softc *ahd, char channel, int initiate_reset) /* Make sure the sequencer is in a safe location. */ ahd_clear_critical_section(ahd); -#if AHD_TARGET_MODE +#ifdef AHD_TARGET_MODE if ((ahd->flags & AHD_TARGETROLE) != 0) { ahd_run_tqinfifo(ahd, /*paused*/TRUE); } diff --git a/sys/dev/disk/aic7xxx/aic79xx_osm.c b/sys/dev/disk/aic7xxx/aic79xx_osm.c index 00cfa4c434..af538a757f 100644 --- a/sys/dev/disk/aic7xxx/aic79xx_osm.c +++ b/sys/dev/disk/aic7xxx/aic79xx_osm.c @@ -31,8 +31,8 @@ * * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.c#35 $ * - * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.c,v 1.22 2005/09/22 05:01:37 gibbs Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_osm.c,v 1.19 2007/07/07 00:28:32 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.c,v 1.23 2005/12/04 02:12:40 ru Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_osm.c,v 1.20 2007/07/07 01:06:07 pavalos Exp $ */ #include "aic79xx_osm.h" @@ -53,7 +53,7 @@ #define ccb_scb_ptr spriv_ptr0 -#if UNUSED +#if 0 static void ahd_dump_targcmd(struct target_cmd *cmd); #endif static int ahd_modevent(module_t mod, int type, void *data); @@ -1462,7 +1462,7 @@ ahd_detach(device_t dev) return (0); } -#if UNUSED +#if 0 static void ahd_dump_targcmd(struct target_cmd *cmd) { diff --git a/sys/dev/disk/aic7xxx/aic79xx_osm.h b/sys/dev/disk/aic7xxx/aic79xx_osm.h index 3107cbe962..adee777c40 100644 --- a/sys/dev/disk/aic7xxx/aic79xx_osm.h +++ b/sys/dev/disk/aic7xxx/aic79xx_osm.h @@ -32,8 +32,8 @@ * * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#23 $ * - * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.h,v 1.13 2003/12/17 00:02:09 gibbs Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_osm.h,v 1.9 2007/07/06 00:01:16 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.h,v 1.17 2005/12/04 02:12:40 ru Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_osm.h,v 1.10 2007/07/07 01:06:07 pavalos Exp $ */ #ifndef _AIC79XX_FREEBSD_H_ @@ -112,7 +112,7 @@ #define AHD_NSEG (roundup(btoc(MAXPHYS) + 1, 16)) /* This driver supports target mode */ -#if NOT_YET +#ifdef NOT_YET #define AHD_TARGET_MODE 1 #endif diff --git a/sys/dev/disk/aic7xxx/aic79xx_pci.c b/sys/dev/disk/aic7xxx/aic79xx_pci.c index 832dd1cdcb..07e27cf0e3 100644 --- a/sys/dev/disk/aic7xxx/aic79xx_pci.c +++ b/sys/dev/disk/aic7xxx/aic79xx_pci.c @@ -40,8 +40,8 @@ * * $Id: //depot/aic7xxx/aic7xxx/aic79xx_pci.c#88 $ * - * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_pci.c,v 1.23 2005/02/16 18:16:35 gibbs Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_pci.c,v 1.14 2007/07/06 06:35:41 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_pci.c,v 1.24 2005/12/04 02:12:40 ru Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/aic79xx_pci.c,v 1.15 2007/07/07 01:06:07 pavalos Exp $ */ #ifdef __linux__ @@ -620,7 +620,7 @@ ahd_check_extport(struct ahd_softc *ahd) } } -#if AHD_DEBUG +#ifdef AHD_DEBUG if (have_seeprom != 0 && (ahd_debug & AHD_DUMP_SEEPROM) != 0) { uint16_t *sc_data; diff --git a/sys/dev/disk/aic7xxx/aic7xxx_osm.c b/sys/dev/disk/aic7xxx/aic7xxx_osm.c index 0085ddc40a..5d64eaa706 100644 --- a/sys/dev/disk/aic7xxx/aic7xxx_osm.c +++ b/sys/dev/disk/aic7xxx/aic7xxx_osm.c @@ -30,8 +30,8 @@ * * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic7xxx_osm.c#20 $ * - * $FreeBSD: src/sys/dev/aic7xxx/aic7xxx_osm.c,v 1.43 2005/09/22 05:01:37 gibbs Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/aic7xxx_osm.c,v 1.17 2007/07/07 00:28:32 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/aic7xxx_osm.c,v 1.44 2005/12/04 02:12:40 ru Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/aic7xxx_osm.c,v 1.18 2007/07/07 01:06:07 pavalos Exp $ */ #include "aic7xxx_osm.h" @@ -49,7 +49,7 @@ devclass_t ahc_devclass; -#if UNUSED +#if 0 static void ahc_dump_targcmd(struct target_cmd *cmd); #endif static int ahc_modevent(module_t mod, int type, void *data); @@ -1640,7 +1640,7 @@ ahc_detach(device_t dev) return (0); } -#if UNUSED +#if 0 static void ahc_dump_targcmd(struct target_cmd *cmd) { -- 2.41.0