* [linkinjeon-ntfs:ntfs-next 47/48] fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations
@ 2026-04-16 20:33 kernel test robot
2026-04-17 3:31 ` Namjae Jeon
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-04-16 20:33 UTC (permalink / raw)
To: Mark Brown; +Cc: llvm, oe-kbuild-all, Namjae Jeon
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git ntfs-next
head: 75579d45c31244811d57ae99692b6c3d197560b4
commit: 50ba0870ccdba0b8fa15f1eb0e11bfa08185c383 [47/48] ntfs: fix build error due to vma_desc_test() rename
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20260417/202604170407.bqLb88Ri-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260417/202604170407.bqLb88Ri-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/202604170407.bqLb88Ri-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (vma_desc_test(desc, VMA_WRITE_BIT)) {
^
1 error generated.
vim +/vma_desc_test +657 fs/ntfs/file.c
645
646 static int ntfs_file_mmap_prepare(struct vm_area_desc *desc)
647 {
648 struct file *file = desc->file;
649 struct inode *inode = file_inode(file);
650
651 if (NVolShutdown(NTFS_SB(file->f_mapping->host->i_sb)))
652 return -EIO;
653
654 if (NInoCompressed(NTFS_I(inode)))
655 return -EOPNOTSUPP;
656
> 657 if (vma_desc_test(desc, VMA_WRITE_BIT)) {
658 struct inode *inode = file_inode(file);
659 loff_t from, to;
660 int err;
661
662 from = ((loff_t)desc->pgoff << PAGE_SHIFT);
663 to = min_t(loff_t, i_size_read(inode),
664 from + desc->end - desc->start);
665
666 if (NTFS_I(inode)->initialized_size < to) {
667 err = ntfs_extend_initialized_size(inode, to, to, false);
668 if (err)
669 return err;
670 }
671 }
672
673
674 file_accessed(file);
675 desc->vm_ops = &ntfs_file_vm_ops;
676 return 0;
677 }
678
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linkinjeon-ntfs:ntfs-next 47/48] fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations
2026-04-16 20:33 [linkinjeon-ntfs:ntfs-next 47/48] fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations kernel test robot
@ 2026-04-17 3:31 ` Namjae Jeon
0 siblings, 0 replies; 2+ messages in thread
From: Namjae Jeon @ 2026-04-17 3:31 UTC (permalink / raw)
To: kernel test robot; +Cc: Mark Brown, llvm, oe-kbuild-all
Sorry for the noise, I will fix it.
On Fri, Apr 17, 2026 at 5:33 AM kernel test robot <lkp@intel.com> wrote:
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git ntfs-next
> head: 75579d45c31244811d57ae99692b6c3d197560b4
> commit: 50ba0870ccdba0b8fa15f1eb0e11bfa08185c383 [47/48] ntfs: fix build error due to vma_desc_test() rename
> config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20260417/202604170407.bqLb88Ri-lkp@intel.com/config)
> compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260417/202604170407.bqLb88Ri-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/202604170407.bqLb88Ri-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> if (vma_desc_test(desc, VMA_WRITE_BIT)) {
> ^
> 1 error generated.
>
>
> vim +/vma_desc_test +657 fs/ntfs/file.c
>
> 645
> 646 static int ntfs_file_mmap_prepare(struct vm_area_desc *desc)
> 647 {
> 648 struct file *file = desc->file;
> 649 struct inode *inode = file_inode(file);
> 650
> 651 if (NVolShutdown(NTFS_SB(file->f_mapping->host->i_sb)))
> 652 return -EIO;
> 653
> 654 if (NInoCompressed(NTFS_I(inode)))
> 655 return -EOPNOTSUPP;
> 656
> > 657 if (vma_desc_test(desc, VMA_WRITE_BIT)) {
> 658 struct inode *inode = file_inode(file);
> 659 loff_t from, to;
> 660 int err;
> 661
> 662 from = ((loff_t)desc->pgoff << PAGE_SHIFT);
> 663 to = min_t(loff_t, i_size_read(inode),
> 664 from + desc->end - desc->start);
> 665
> 666 if (NTFS_I(inode)->initialized_size < to) {
> 667 err = ntfs_extend_initialized_size(inode, to, to, false);
> 668 if (err)
> 669 return err;
> 670 }
> 671 }
> 672
> 673
> 674 file_accessed(file);
> 675 desc->vm_ops = &ntfs_file_vm_ops;
> 676 return 0;
> 677 }
> 678
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-17 3:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-16 20:33 [linkinjeon-ntfs:ntfs-next 47/48] fs/ntfs/file.c:657:6: error: call to undeclared function 'vma_desc_test'; ISO C99 and later do not support implicit function declarations kernel test robot
2026-04-17 3:31 ` Namjae Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox