diff --git a/qla_isp/linux/isp_linux.c b/qla_isp/linux/isp_linux.c index 441d3d6d4..4d8515a0f 100644 --- a/qla_isp/linux/isp_linux.c +++ b/qla_isp/linux/isp_linux.c @@ -1,4 +1,4 @@ -/* $Id: isp_linux.c,v 1.207 2007/11/13 01:25:50 mjacob Exp $ */ +/* $Id: isp_linux.c,v 1.208 2007/11/15 18:24:54 mjacob Exp $ */ /* * Copyright (c) 1997-2007 by Matthew Jacob * All rights reserved. @@ -96,9 +96,9 @@ static char *isp_wwpns; static char *isp_wwnns; -#ifdef ISP_TARGET_MODE -#ifndef ISP_PARENT_TARGET -#define ISP_PARENT_TARGET scsi_target_handler +#ifdef ISP_TARGET_MODE +#ifndef ISP_PARENT_TARGET +#define ISP_PARENT_TARGET scsi_target_handler #endif #define CALL_PARENT_TMD(hba, tmd, action) \ @@ -861,7 +861,7 @@ isp_init_target(ispsoftc_t *isp) isp->isp_osinfo.npool[i].notify.nt_lreserved = &isp->isp_osinfo.npool[i+1]; } for (i = 0; i < (N_TGT_AUX >> 5); i++) { - isp->isp_osinfo.auxbmap[i] = 0; + isp->isp_osinfo.auxbmap[i] = 0; } MEMCPY(isp->isp_osinfo.inqdata, inqdsd, DEFAULT_INQSIZE); isp->isp_osinfo.pending_t = NULL; diff --git a/qla_isp/linux/isp_linux.h b/qla_isp/linux/isp_linux.h index 6dcbb9771..4a3b4fb77 100644 --- a/qla_isp/linux/isp_linux.h +++ b/qla_isp/linux/isp_linux.h @@ -1,4 +1,4 @@ -/* $Id: isp_linux.h,v 1.142 2007/11/13 20:20:04 mjacob Exp $ */ +/* $Id: isp_linux.h,v 1.143 2007/11/15 18:41:47 mjacob Exp $ */ /* * Copyright (c) 1997-2007 by Matthew Jacob * All rights reserved. @@ -75,6 +75,10 @@ #error "Only Linux 2.6 kernels are supported with this driver" #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) +#error "There are problems with 2.6.23 and later kernels at present" +#endif + #ifndef UNUSED_PARAMETER #define UNUSED_PARAMETER(x) (void) x #endif