error: structure has no member named ' refcount '

"kishore" <[email protected]> Thu, 22 Dec 2005 11:06:59 +0530
Newsgroups gmane.linux.kernel.streams
Message-ID <004901c606b9$cf624c40$3b01a8c0@kishore>
hi,

    I am trying to compile LiS-2.18 (downloaded from gcom.com)  on,
Redhat Enterprise Linux WS release 4 ( Nahant Update 2)  with kernel version
2.6.9-16.EL .

I struck with an error while compiling LiS-2.18.

Error :
/usr/src/LiS-2.18/head/linux-mdep.c : 1001: error: struct has no member
named 'refcount'

I looked at LiS-2.18/head/linux-mdep.c ;the following line
printk(">>  i->i_cdev: c@0x%p/%d/%x \"%s\"\n",
                inode->i_cdev,
                K_ATOMIC_READ(&inode->i_cdev->kobj.refcount),
                DEV_TO_INT(inode->i_cdev->dev),
                (inode->i_cdev->owner ?
                 inode->i_cdev->owner->name : "No-Owner")) ;

 will be executed only for kernel versions > 2.5.

I looked at  lib/modules/`uname -r`/build/include/linux/kobject.h where
'struct kobject ' has no member with name 'refcount', i surprised, why LiS
is referring an undefined member in kobject.

Previously, I worked with the same LiS-2.18 on ES3 on kenel 2.4. It is lack
of troubles bcas the above code is for kernels > 2.5.

I went through gcom.com, they gave LiS-2.18 is compatible with 2.6 kernels
also. Can I know whether LiS-2.18 is compatible with the 2.6 kernel or not.

Can any one provide a solution to overcome this trouble.

regards,
kishore.