All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/file_attr.c:100:24: error: implicit declaration of function 'bdev_fileattr'
@ 2026-08-23 13:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-23 13:21 UTC (permalink / raw)
  To: Keith Busch; +Cc: oe-kbuild-all, 0day robot

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/202608230621.c9CRXHtf-lkp@intel.com/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/202608230621.c9CRXHtf-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608230621.c9CRXHtf-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-23 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-23 13:21 fs/file_attr.c:100:24: error: implicit declaration of function 'bdev_fileattr' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.