On Saturday 29 September 2007, Florian Schmidt wrote:
Oh i forgot to show the code snippets in question. I put them to the
crresponding error below [matching line number is marked with [*]]:
static inline struct kobject * to_kobj(struct dentry * dentry)
{
struct sysfs_dirent * sd = dentry->d_fsdata;
if(sd)
return ((struct kobject *) sd->s_element); [*]
else
return NULL;
}
[...]
if(classdir2){
// jackpot. extract the class.
struct kobject *ko = to_kobj(classdir2);
sys_class = (ko?to_class(ko):NULL); [*]
if(!sys_class)
RDEBUG(2, "WARNING: sysfs entry for %s has no kobject!
\n",register_msg.clazz);
}
[...]
STATIC struct file_operations fusd_fops = {
owner: THIS_MODULE,
open: fusd_open,
read: fusd_read,
write: fusd_write,
writev: fusd_writev, [*]
release: fusd_release,
poll: fusd_poll,
};
--
Palimm Palimm!
http://tapas.affenbande.org
-