* [akpm-mm:mm-new 417/421] fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported'
@ 2026-01-20 4:30 kernel test robot
2026-01-20 11:00 ` Lorenzo Stoakes
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-01-20 4:30 UTC (permalink / raw)
To: Lorenzo Stoakes
Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List
Hi Lorenzo,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: e4348a62bb1acacafcdeb149c9363291fae08c0c
commit: e3900da1b37f861133669d26ae02415f18fa71b9 [417/421] mm: update all remaining mmap_prepare users to use vma_flags_t
config: parisc-randconfig-001-20260120 (https://download.01.org/0day-ci/archive/20260120/202601201209.cGuf98oB-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601201209.cGuf98oB-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/202601201209.cGuf98oB-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/xfs/xfs_file.c: In function 'xfs_file_mmap_prepare':
>> fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported'
if (!daxdev_mapping_supported(desc->vma_flags, file_inode(file),
~~~~^~~~~~~~~~~
In file included from fs/xfs/xfs_buf.h:14,
from fs/xfs/xfs_linux.h:81,
from fs/xfs/xfs.h:26,
from fs/xfs/xfs_file.c:6:
include/linux/dax.h:114:56: note: expected 'vm_flags_t' {aka 'long unsigned int'} but argument is of type 'vma_flags_t' {aka 'struct <anonymous>'}
static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
~~~~~~~~~~~^~~~~~~~
vim +/daxdev_mapping_supported +1977 fs/xfs/xfs_file.c
1964
1965 STATIC int
1966 xfs_file_mmap_prepare(
1967 struct vm_area_desc *desc)
1968 {
1969 struct file *file = desc->file;
1970 struct inode *inode = file_inode(file);
1971 struct xfs_buftarg *target = xfs_inode_buftarg(XFS_I(inode));
1972
1973 /*
1974 * We don't support synchronous mappings for non-DAX files and
1975 * for DAX files if underneath dax_device is not synchronous.
1976 */
> 1977 if (!daxdev_mapping_supported(desc->vma_flags, file_inode(file),
1978 target->bt_daxdev))
1979 return -EOPNOTSUPP;
1980
1981 file_accessed(file);
1982 desc->vm_ops = &xfs_file_vm_ops;
1983 if (IS_DAX(inode))
1984 vma_desc_set_flags(desc, VMA_HUGEPAGE_BIT);
1985 return 0;
1986 }
1987
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [akpm-mm:mm-new 417/421] fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported'
2026-01-20 4:30 [akpm-mm:mm-new 417/421] fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported' kernel test robot
@ 2026-01-20 11:00 ` Lorenzo Stoakes
0 siblings, 0 replies; 2+ messages in thread
From: Lorenzo Stoakes @ 2026-01-20 11:00 UTC (permalink / raw)
To: kernel test robot
Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List
On Tue, Jan 20, 2026 at 12:30:13PM +0800, kernel test robot wrote:
> Hi Lorenzo,
>
> FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head: e4348a62bb1acacafcdeb149c9363291fae08c0c
> commit: e3900da1b37f861133669d26ae02415f18fa71b9 [417/421] mm: update all remaining mmap_prepare users to use vma_flags_t
> config: parisc-randconfig-001-20260120 (https://download.01.org/0day-ci/archive/20260120/202601201209.cGuf98oB-lkp@intel.com/config)
> compiler: hppa-linux-gcc (GCC) 8.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601201209.cGuf98oB-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/202601201209.cGuf98oB-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> fs/xfs/xfs_file.c: In function 'xfs_file_mmap_prepare':
> >> fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported'
> if (!daxdev_mapping_supported(desc->vma_flags, file_inode(file),
> ~~~~^~~~~~~~~~~
> In file included from fs/xfs/xfs_buf.h:14,
> from fs/xfs/xfs_linux.h:81,
> from fs/xfs/xfs.h:26,
> from fs/xfs/xfs_file.c:6:
> include/linux/dax.h:114:56: note: expected 'vm_flags_t' {aka 'long unsigned int'} but argument is of type 'vma_flags_t' {aka 'struct <anonymous>'}
> static inline bool daxdev_mapping_supported(vm_flags_t vm_flags,
> ~~~~~~~~~~~^~~~~~~~
>
>
> vim +/daxdev_mapping_supported +1977 fs/xfs/xfs_file.c
>
> 1964
> 1965 STATIC int
> 1966 xfs_file_mmap_prepare(
> 1967 struct vm_area_desc *desc)
> 1968 {
> 1969 struct file *file = desc->file;
> 1970 struct inode *inode = file_inode(file);
> 1971 struct xfs_buftarg *target = xfs_inode_buftarg(XFS_I(inode));
> 1972
> 1973 /*
> 1974 * We don't support synchronous mappings for non-DAX files and
> 1975 * for DAX files if underneath dax_device is not synchronous.
> 1976 */
> > 1977 if (!daxdev_mapping_supported(desc->vma_flags, file_inode(file),
> 1978 target->bt_daxdev))
Same deal as other report, will fix.
> 1979 return -EOPNOTSUPP;
> 1980
> 1981 file_accessed(file);
> 1982 desc->vm_ops = &xfs_file_vm_ops;
> 1983 if (IS_DAX(inode))
> 1984 vma_desc_set_flags(desc, VMA_HUGEPAGE_BIT);
> 1985 return 0;
> 1986 }
> 1987
>
> --
> 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-01-20 11:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-20 4:30 [akpm-mm:mm-new 417/421] fs/xfs/xfs_file.c:1977:36: error: incompatible type for argument 1 of 'daxdev_mapping_supported' kernel test robot
2026-01-20 11:00 ` Lorenzo Stoakes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox