diff --git a/scst/include/scst.h b/scst/include/scst.h index 0a3cb3c7c..b158338ab 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -39,22 +39,6 @@ #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) -/* - * From . See also commit - * f57e4502cea471c69782d4790c71d8414ab49a9d. - */ -#define UNMAP 0x42 -#endif - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28) -/* - * From . See also commit - * d30a2605be9d5132d95944916e8f578fcfe4f976. - */ -#define BLKDISCARD _IO(0x12,119) -#endif - #ifdef INSIDE_KERNEL_TREE #include #else diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 44ff05dc9..f953fca7a 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -276,6 +276,23 @@ enum scst_cdb_flags { #endif #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33) +/* + * From . See also commit + * f57e4502cea471c69782d4790c71d8414ab49a9d. + */ +#define UNMAP 0x42 +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) +/* + * From . See also commit + * d30a2605be9d5132d95944916e8f578fcfe4f976. + */ +#define BLKDISCARD _IO(0x12,119) +#endif + + /************************************************************* ** SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft ** T10/1561-D Revision 4 Draft dated 7th November 2002.