Re: getting FUSD compiled with current kernels

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Saturday, September 29, 2007 - 12:35 pm

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
getting FUSD compiled with current kernels, Florian Schmidt, (Sat Sep 29, 12:23 pm)
Re: getting FUSD compiled with current kernels, Lee Revell, (Sat Sep 29, 9:26 pm)
Re: getting FUSD compiled with current kernels, Florian Schmidt, (Sun Sep 30, 8:29 am)
Re: getting FUSD compiled with current kernels, Florian Schmidt, (Sun Sep 30, 11:45 am)
Re: getting FUSD compiled with current kernels, Florian Schmidt, (Sat Sep 29, 12:35 pm)
Re: getting FUSD compiled with current kernels, Florian Schmidt, (Sat Sep 29, 12:37 pm)
Re: getting FUSD compiled with current kernels, Sam Ravnborg, (Sat Sep 29, 1:16 pm)