error: structure has no member named ' refcount '

Paul Landay <[email protected]> Fri, 23 Dec 2005 09:37:15 -0500
Newsgroups gmane.linux.kernel.streams
Message-ID <[email protected]>
See the archives of this mailing list.
http://www.mail-archive.com/cgi-bin/htsearch?method=and&format=short&config=linux-streams_gsyc_escet_urjc_es&restrict=&exclude=&words=refcount
This is what I do to /head/linux-mdep.c

@@ -998,7 +1001,11 @@
         if (inode && inode->i_cdev)
             printk(">> i->i_cdev: c@0x%p/%d/%x \"%s\"\n",
                 inode->i_cdev,
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8)
                 K_ATOMIC_READ(&inode->i_cdev->kobj.refcount),
+#else
+               K_ATOMIC_READ(&inode->i_cdev->kobj.kref.refcount),
+#endif
                 DEV_TO_INT(inode->i_cdev->dev),
                 (inode->i_cdev->owner ?
                  inode->i_cdev->owner->name : "No-Owner")) ;

Paul Landay