* [brauner-github:vfs-6.16.misc 18/18] mm/readahead.c:703:30: error: use of undeclared identifier 'fd_file'; did you mean 'get_file'?
@ 2025-04-21 11:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-21 11:13 UTC (permalink / raw)
To: Christian Brauner; +Cc: llvm, oe-kbuild-all, Christian Brauner
tree: https://github.com/brauner/linux.git vfs-6.16.misc
head: ac6355451deea7f96f5ca40a226fb0685b0475af
commit: ac6355451deea7f96f5ca40a226fb0685b0475af [18/18] fs: add S_ANON_INODE
config: arm-randconfig-001-20250421 (https://download.01.org/0day-ci/archive/20250421/202504211930.SWe5ODLS-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250421/202504211930.SWe5ODLS-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/202504211930.SWe5ODLS-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/readahead.c:703:30: error: use of undeclared identifier 'fd_file'; did you mean 'get_file'?
703 | if (IS_ANON_FILE(file_inode(fd_file)))
| ^~~~~~~
| get_file
include/linux/fs.h:2404:31: note: expanded from macro 'IS_ANON_FILE'
2404 | #define IS_ANON_FILE(inode) ((inode)->i_flags & S_ANON_INODE)
| ^
include/linux/fs.h:1131:28: note: 'get_file' declared here
1131 | static inline struct file *get_file(struct file *f)
| ^
1 error generated.
vim +703 mm/readahead.c
690
691 ssize_t ksys_readahead(int fd, loff_t offset, size_t count)
692 {
693 CLASS(fd, f)(fd);
694
695 if (fd_empty(f) || !(fd_file(f)->f_mode & FMODE_READ))
696 return -EBADF;
697
698 /*
699 * The readahead() syscall is intended to run only on files
700 * that can execute readahead. If readahead is not possible
701 * on this file, then we must return -EINVAL.
702 */
> 703 if (IS_ANON_FILE(file_inode(fd_file)))
704 return -EINVAL;
705 if (!fd_file(f)->f_mapping || !fd_file(f)->f_mapping->a_ops ||
706 (!S_ISREG(file_inode(fd_file(f))->i_mode) &&
707 !S_ISBLK(file_inode(fd_file(f))->i_mode)))
708 return -EINVAL;
709
710 return vfs_fadvise(fd_file(f), offset, count, POSIX_FADV_WILLNEED);
711 }
712
--
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:[~2025-04-21 11:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 11:13 [brauner-github:vfs-6.16.misc 18/18] mm/readahead.c:703:30: error: use of undeclared identifier 'fd_file'; did you mean 'get_file'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox