* [axboe-block:rw_iter 101/105] arch/x86/mm/tlb.c:1317:24: error: implicit declaration of function 'iov_iter_count'
@ 2024-04-06 6:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-06 6:19 UTC (permalink / raw
To: Jens Axboe; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git rw_iter
head: bb4803260393a54d3b254c2abfe121ab89cce776
commit: 3965099c682e2bdbd4e5f6ef81beef00806350a4 [101/105] arch/x86: convert to read/write iterators
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20240406/202404061417.ofqdy8UV-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240406/202404061417.ofqdy8UV-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/202404061417.ofqdy8UV-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/x86/mm/tlb.c: In function 'tlbflush_write_file':
>> arch/x86/mm/tlb.c:1317:24: error: implicit declaration of function 'iov_iter_count' [-Werror=implicit-function-declaration]
1317 | size_t count = iov_iter_count(from);
| ^~~~~~~~~~~~~~
>> arch/x86/mm/tlb.c:1323:14: error: implicit declaration of function 'copy_from_iter_full'; did you mean 'copy_from_user_nofault'? [-Werror=implicit-function-declaration]
1323 | if (!copy_from_iter_full(buf, len, from))
| ^~~~~~~~~~~~~~~~~~~
| copy_from_user_nofault
cc1: some warnings being treated as errors
vim +/iov_iter_count +1317 arch/x86/mm/tlb.c
1314
1315 static ssize_t tlbflush_write_file(struct kiocb *iocb, struct iov_iter *from)
1316 {
> 1317 size_t count = iov_iter_count(from);
1318 char buf[32];
1319 ssize_t len;
1320 int ceiling;
1321
1322 len = min(count, sizeof(buf) - 1);
> 1323 if (!copy_from_iter_full(buf, len, from))
1324 return -EFAULT;
1325
1326 buf[len] = '\0';
1327 if (kstrtoint(buf, 0, &ceiling))
1328 return -EINVAL;
1329
1330 if (ceiling < 0)
1331 return -EINVAL;
1332
1333 tlb_single_page_flush_ceiling = ceiling;
1334 return count;
1335 }
1336
--
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-04-06 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-06 6:19 [axboe-block:rw_iter 101/105] arch/x86/mm/tlb.c:1317:24: error: implicit declaration of function 'iov_iter_count' 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 read-only IMAP folder(s) and NNTP newsgroup(s).