[ext4:dev 1/1] fs/ext4/namei.c:1572:9: note: in expansion of macro 'if'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head:   676a9962a6835af59fcc8278a4abb75886612066
commit: 676a9962a6835af59fcc8278a4abb75886612066 [1/1] ext4 crypto: revalidate dentry after adding or removing the key
config: i386-randconfig-x005-02051359 (attached as .config)
reproduce:
        git checkout 676a9962a6835af59fcc8278a4abb75886612066
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/linkage.h:4:0,
                    from include/linux/fs.h:4,
                    from fs/ext4/namei.c:27:
   fs/ext4/namei.c: In function 'ext4_lookup':
   fs/ext4/namei.c:1572:24: error: 'struct ext4_inode_info' has no member named 'i_crypt_info'
            if (EXT4_I(dir)->i_crypt_info == NULL)
                           ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> fs/ext4/namei.c:1572:9: note: in expansion of macro 'if'
            if (EXT4_I(dir)->i_crypt_info == NULL)
            ^
   fs/ext4/namei.c:1572:24: error: 'struct ext4_inode_info' has no member named 'i_crypt_info'
            if (EXT4_I(dir)->i_crypt_info == NULL)
                           ^
   include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                                           ^
>> fs/ext4/namei.c:1572:9: note: in expansion of macro 'if'
            if (EXT4_I(dir)->i_crypt_info == NULL)
            ^
   fs/ext4/namei.c:1572:24: error: 'struct ext4_inode_info' has no member named 'i_crypt_info'
            if (EXT4_I(dir)->i_crypt_info == NULL)
                           ^
   include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^
>> fs/ext4/namei.c:1572:9: note: in expansion of macro 'if'
            if (EXT4_I(dir)->i_crypt_info == NULL)
            ^

vim +/if +1572 fs/ext4/namei.c

  1556	{
  1557		struct inode *inode;
  1558		struct ext4_dir_entry_2 *de;
  1559		struct buffer_head *bh;
  1560	
  1561	       if (ext4_encrypted_inode(dir)) {
  1562	               int res = ext4_get_encryption_info(dir);
  1563	
  1564			/*
  1565			 * This should be a properly defined flag for
  1566			 * dentry->d_flags when we uplift this to the VFS.
  1567			 * d_fsdata is set to (void *) 1 if if the dentry is
  1568			 * created while the directory was encrypted and we
  1569			 * don't have access to the key.
  1570			 */
  1571		       dentry->d_fsdata = NULL;
> 1572		       if (EXT4_I(dir)->i_crypt_info == NULL)
  1573			       dentry->d_fsdata = (void *) 1;
  1574		       d_set_d_op(dentry, &ext4_encrypted_d_ops);
  1575		       if (res && res != -ENOKEY)
  1576			       return ERR_PTR(res);
  1577	       }
  1578	
  1579		if (dentry->d_name.len > EXT4_NAME_LEN)
  1580			return ERR_PTR(-ENAMETOOLONG);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux