scst: Port to RHEL 5.7

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-02-04 16:40:33 +00:00
parent 85b89521f8
commit c31ac7c591

View File

@@ -2738,7 +2738,8 @@ EXPORT_SYMBOL_GPL(scst_create_proc_entry);
int scst_single_seq_open(struct inode *inode, struct file *file)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) \
|| defined(RHEL_MAJOR) && RHEL_MAJOR -0 >= 5 && RHEL_MINOR -0 >= 7
struct scst_proc_data *pdata = container_of(PDE(inode)->proc_fops,
struct scst_proc_data, seq_op);
#else