* [axboe-block:rw_iter 76/93] drivers/misc/lkdtm/core.c:300:24: error: implicit declaration of function 'iov_iter_count'
@ 2024-04-06 0:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-06 0:18 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: 222e1965f038cbce873a9392d6b9e0df82837498
commit: 5f44157c2a3b1257016bb0bd4257c96d1a126723 [76/93] misc: lkdtm: convert to read/write iterators
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20240406/202404060825.JvYUcE4D-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240406/202404060825.JvYUcE4D-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/202404060825.JvYUcE4D-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/misc/lkdtm/core.c: In function 'direct_entry':
>> drivers/misc/lkdtm/core.c:300:24: error: implicit declaration of function 'iov_iter_count' [-Werror=implicit-function-declaration]
300 | size_t count = iov_iter_count(from);
| ^~~~~~~~~~~~~~
>> drivers/misc/lkdtm/core.c:312:14: error: implicit declaration of function 'copy_from_iter_full'; did you mean 'copy_from_user_page'? [-Werror=implicit-function-declaration]
312 | if (!copy_from_iter_full(buf, count, from)) {
| ^~~~~~~~~~~~~~~~~~~
| copy_from_user_page
cc1: some warnings being treated as errors
vim +/iov_iter_count +300 drivers/misc/lkdtm/core.c
295
296 /* Special entry to just crash directly. Available without KPROBEs */
297 static ssize_t direct_entry(struct kiocb *iocb, struct iov_iter *from)
298 {
299 const struct crashtype *crashtype;
> 300 size_t count = iov_iter_count(from);
301 char *buf;
302 int err;
303
304 if (count >= PAGE_SIZE)
305 return -EINVAL;
306 if (count < 1)
307 return -EINVAL;
308
309 buf = (char *)__get_free_page(GFP_KERNEL);
310 if (!buf)
311 return -ENOMEM;
> 312 if (!copy_from_iter_full(buf, count, from)) {
313 free_page((unsigned long) buf);
314 return -EFAULT;
315 }
316 /* NULL-terminate and remove enter */
317 buf[count] = '\0';
318 strim(buf);
319
320 crashtype = find_crashtype(buf);
321 free_page((unsigned long) buf);
322 if (!crashtype)
323 return -EINVAL;
324
325 pr_info("Performing direct entry %s\n", crashtype->name);
326 err = lkdtm_do_action(crashtype);
327 iocb->ki_pos += count;
328
329 if (err)
330 return err;
331 return count;
332 }
333
--
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 0:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-06 0:18 [axboe-block:rw_iter 76/93] drivers/misc/lkdtm/core.c:300: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).