From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [axboe-block:buffered-uncached.10 13/18] fs/iomap/buffered-io.c:606:20: error: use of undeclared identifier 'IOMAP_DONTCACHE'
Date: Fri, 20 Dec 2024 12:25:59 +0800 [thread overview]
Message-ID: <202412201218.KQsWMlvy-lkp@intel.com> (raw)
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
reply other threads:[~2024-12-20 4:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412201218.KQsWMlvy-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox