diff --git a/scst/include/scst.h b/scst/include/scst.h index cb0f46bf6..32c0799ed 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -246,7 +246,8 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q) #endif #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) && \ + !defined(CONFIG_COMPAT_KERNEL_3_12) /* * See also patch "new helper: file_inode(file)" (commit ID * 496ad9aa8ef448058e36ca7a787c61f2e63f0f54).