fs/file_attr.c:100:24: error: implicit declaration of function 'bdev_fileattr'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/intel-lab-lkp/linux/commits/Keith-Busch/fs-add-direct-io-attributes-to-file_getattr/20260815-124138 head: 6501161303f993815f8074b592e0f7c264537f72 commit: 311da0a53d527a6287f6d3fd89bcf394c03f663b block: report direct io attributes through file_getattr date: 8 days ago config: x86_64-randconfig-2005-20250721 (https://download.01.org/0day-ci/archive/20260823/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260823/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): fs/file_attr.c: In function 'vfs_fileattr_get': >> fs/file_attr.c:100:24: error: implicit declaration of function 'bdev_fileattr' [-Wimplicit-function-declaration] 100 | return bdev_fileattr(inode, fa); | ^~~~~~~~~~~~~ vim +/bdev_fileattr +100 fs/file_attr.c 77 78 /** 79 * vfs_fileattr_get - retrieve miscellaneous file attributes 80 * @dentry: the object to retrieve from 81 * @fa: fileattr pointer 82 * 83 * Call i_op->fileattr_get() callback, if exists. 84 * 85 * Return: 0 on success, or a negative error on failure. 86 */ 87 int vfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa) 88 { 89 struct inode *inode = d_inode(dentry); 90 int error; 91 92 if (!inode->i_op->fileattr_get && !S_ISBLK(inode->i_mode)) 93 return -ENOIOCTLCMD; 94 95 error = security_inode_file_getattr(dentry, fa); 96 if (error) 97 return error; 98 99 if (!inode->i_op->fileattr_get) > 100 return bdev_fileattr(inode, fa); 101 102 return inode->i_op->fileattr_get(dentry, fa); 103 } 104 EXPORT_SYMBOL(vfs_fileattr_get); 105 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki