[viro-vfs:work.dcache 16/16] fs/dcache.c:1081:48: error: incompatible type for argument 2 of 'to_shrink_list'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.dcache
head:   e565b3bc8b39fae7d3c4093e012df87ba1eed599
commit: e565b3bc8b39fae7d3c4093e012df87ba1eed599 [16/16] d_prune_aliases(): use a shrink list
config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20231104/202311041021.xJLFuXJz-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311041021.xJLFuXJz-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311041021.xJLFuXJz-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   fs/dcache.c: In function 'd_prune_aliases':
>> fs/dcache.c:1081:48: error: incompatible type for argument 2 of 'to_shrink_list'
    1081 |                         to_shrink_list(dentry, dispose);
         |                                                ^~~~~~~
         |                                                |
         |                                                struct list_head
   fs/dcache.c:898:69: note: expected 'struct list_head *' but argument is of type 'struct list_head'
     898 | static void to_shrink_list(struct dentry *dentry, struct list_head *list)
         |                                                   ~~~~~~~~~~~~~~~~~~^~~~
>> fs/dcache.c:1085:28: error: incompatible type for argument 1 of 'shrink_dentry_list'
    1085 |         shrink_dentry_list(dispose);
         |                            ^~~~~~~
         |                            |
         |                            struct list_head
   In file included from fs/dcache.c:35:
   fs/internal.h:209:32: note: expected 'struct list_head *' but argument is of type 'struct list_head'
     209 | extern void shrink_dentry_list(struct list_head *);
         |                                ^~~~~~~~~~~~~~~~~~


vim +/to_shrink_list +1081 fs/dcache.c

  1067	
  1068	/*
  1069	 *	Try to kill dentries associated with this inode.
  1070	 * WARNING: you must own a reference to inode.
  1071	 */
  1072	void d_prune_aliases(struct inode *inode)
  1073	{
  1074		LIST_HEAD(dispose);
  1075		struct dentry *dentry;
  1076	
  1077		spin_lock(&inode->i_lock);
  1078		hlist_for_each_entry(dentry, &inode->i_dentry, d_u.d_alias) {
  1079			spin_lock(&dentry->d_lock);
  1080			if (!dentry->d_lockref.count)
> 1081				to_shrink_list(dentry, dispose);
  1082			spin_unlock(&dentry->d_lock);
  1083		}
  1084		spin_unlock(&inode->i_lock);
> 1085		shrink_dentry_list(dispose);
  1086	}
  1087	EXPORT_SYMBOL(d_prune_aliases);
  1088	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux