error: dereferencing pointer to incomplete type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am developing module for a file system. For this I wrote following code. I am here traversing the link list of vfsmount objects. While compliling I am getting this error

 

//CODE
int my_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{  

 struct vfsmount *temp_mnt;
/*448*/ for(temp_mnt = (current->fs->pwdmnt); temp_mnt->mnt_list.next != current->fs->pwdmnt; temp_mnt = temp_mnt->mnt_list.next)
          {
              printk("<0>************current  : %s\n",temp_mnt->mnt_sb->s_type->name);
              if( (temp_mnt->mnt_sb) == global_sb)
              vfs_getattr(temp_mnt, (global_sb->s_root), stat);
          } 
 return 0;
}

 

 

//OUTPUT

/ass/ram/ram.c:448: error: dereferencing pointer to incomplete type
/ass/ram/ram.c:448: error: dereferencing pointer to incomplete type
/ass/ram/ram.c:450: error: dereferencing pointer to incomplete type
/ass/ram/ram.c:451: error: dereferencing pointer to incomplete type

 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux