llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [goldwynr:buffered.46 24/90] block/fops.c:507:46: error: too many arguments to function call, expected 3, have 4
@ 2024-01-27 20:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-27 20:13 UTC (permalink / raw)
  To: Goldwyn Rodrigues; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/goldwynr/linux buffered.46
head:   9b93fddebc916105169c8a82d8f3f20fb30ff277
commit: 8f39bf920bebe813810c1d0d392e77dabb415006 [24/90] iomap: Make writeback_control a part of iomap_writepage_ctx
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20240128/202401280414.wu2Y9tAX-lkp@intel.com/config)
compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project a31a60074717fc40887cfe132b77eec93bedd307)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401280414.wu2Y9tAX-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/202401280414.wu2Y9tAX-lkp@intel.com/

All errors (new ones prefixed by >>):

   block/fops.c:476:50: error: too few arguments to function call, expected 3, have 2
     476 |         return iomap_read_folio(folio, &blkdev_iomap_ops);
         |                ~~~~~~~~~~~~~~~~                         ^
   include/linux/iomap.h:280:5: note: 'iomap_read_folio' declared here
     280 | int iomap_read_folio(struct folio *folio, const struct iomap_ops *ops,
         |     ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     281 |                 const struct iomap_read_folio_ops *);
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   block/fops.c:481:40: error: too few arguments to function call, expected 3, have 2
     481 |         iomap_readahead(rac, &blkdev_iomap_ops);
         |         ~~~~~~~~~~~~~~~                       ^
   include/linux/iomap.h:282:6: note: 'iomap_readahead' declared here
     282 | void iomap_readahead(struct readahead_control *, const struct iomap_ops *ops,
         |      ^               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     283 |                 const struct iomap_read_folio_ops *);
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> block/fops.c:507:46: error: too many arguments to function call, expected 3, have 4
     507 |         return iomap_writepages(mapping, wbc, &wpc, &blkdev_writeback_ops);
         |                ~~~~~~~~~~~~~~~~                     ^~~~~~~~~~~~~~~~~~~~~
   include/linux/iomap.h:357:5: note: 'iomap_writepages' declared here
     357 | int iomap_writepages(struct address_space *mapping,
         |     ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     358 |                 struct iomap_writepage_ctx *wpc,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     359 |                 const struct iomap_writeback_ops *ops);
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.


vim +507 block/fops.c

925c86a19bacf8 Christoph Hellwig 2023-08-01  501  
925c86a19bacf8 Christoph Hellwig 2023-08-01  502  static int blkdev_writepages(struct address_space *mapping,
925c86a19bacf8 Christoph Hellwig 2023-08-01  503  		struct writeback_control *wbc)
925c86a19bacf8 Christoph Hellwig 2023-08-01  504  {
925c86a19bacf8 Christoph Hellwig 2023-08-01  505  	struct iomap_writepage_ctx wpc = { };
925c86a19bacf8 Christoph Hellwig 2023-08-01  506  
925c86a19bacf8 Christoph Hellwig 2023-08-01 @507  	return iomap_writepages(mapping, wbc, &wpc, &blkdev_writeback_ops);
925c86a19bacf8 Christoph Hellwig 2023-08-01  508  }
925c86a19bacf8 Christoph Hellwig 2023-08-01  509  

:::::: The code at line 507 was first introduced by commit
:::::: 925c86a19bacf8ce10eb666328fb3fa5aff7b951 fs: add CONFIG_BUFFER_HEAD

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>

-- 
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-01-27 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-27 20:13 [goldwynr:buffered.46 24/90] block/fops.c:507:46: error: too many arguments to function call, expected 3, have 4 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;
as well as URLs for NNTP newsgroup(s).