Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [axboe-block:buffered-uncached.10 13/18] fs/iomap/buffered-io.c:606:20: error: use of undeclared identifier 'IOMAP_DONTCACHE'
@ 2024-12-20  4:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-20  4:25 UTC (permalink / raw)
  To: Jens Axboe; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git buffered-uncached.10
head:   10ef57808208218b909eb26c9de3f3aec7b63d05
commit: 94425319b56d6ebc9d5d6eca449532d41275fbfb [13/18] iomap: make buffered writes work with RWF_DONTCACHE
config: hexagon-randconfig-002-20241220 (https://download.01.org/0day-ci/archive/20241220/202412201218.KQsWMlvy-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 9daf10ff8f29ba3a88a105aaa9d2379c21b77d35)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241220/202412201218.KQsWMlvy-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/202412201218.KQsWMlvy-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/iomap/buffered-io.c:9:
   In file included from include/linux/iomap.h:7:
   In file included from include/linux/blk_types.h:10:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:10:
   In file included from include/linux/mm.h:2223:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> fs/iomap/buffered-io.c:606:20: error: use of undeclared identifier 'IOMAP_DONTCACHE'
     606 |         if (iter->flags & IOMAP_DONTCACHE)
         |                           ^
   fs/iomap/buffered-io.c:1040:17: error: use of undeclared identifier 'IOMAP_DONTCACHE'
    1040 |                 iter.flags |= IOMAP_DONTCACHE;
         |                               ^
   1 warning and 2 errors generated.


vim +/IOMAP_DONTCACHE +606 fs/iomap/buffered-io.c

   590	
   591	/**
   592	 * iomap_get_folio - get a folio reference for writing
   593	 * @iter: iteration structure
   594	 * @pos: start offset of write
   595	 * @len: Suggested size of folio to create.
   596	 *
   597	 * Returns a locked reference to the folio at @pos, or an error pointer if the
   598	 * folio could not be obtained.
   599	 */
   600	struct folio *iomap_get_folio(struct iomap_iter *iter, loff_t pos, size_t len)
   601	{
   602		fgf_t fgp = FGP_WRITEBEGIN | FGP_NOFS;
   603	
   604		if (iter->flags & IOMAP_NOWAIT)
   605			fgp |= FGP_NOWAIT;
 > 606		if (iter->flags & IOMAP_DONTCACHE)
   607			fgp |= FGP_DONTCACHE;
   608		fgp |= fgf_set_order(len);
   609	
   610		return __filemap_get_folio(iter->inode->i_mapping, pos >> PAGE_SHIFT,
   611				fgp, mapping_gfp_mask(iter->inode->i_mapping));
   612	}
   613	EXPORT_SYMBOL_GPL(iomap_get_folio);
   614	

-- 
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:[~2024-12-20  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20  4:25 [axboe-block:buffered-uncached.10 13/18] fs/iomap/buffered-io.c:606:20: error: use of undeclared identifier 'IOMAP_DONTCACHE' 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