From: kernel test robot <lkp@intel.com>
To: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [akpm-mm:mm-unstable 288/290] mm/vmalloc.c:3448:8: warning: no previous prototype for 'zero_iter'
Date: Thu, 23 Mar 2023 02:28:56 +0800 [thread overview]
Message-ID: <202303230226.NucKb3B7-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 39aca4f17e02ee4076b6ab327577c9b1be23775d
commit: d9cab54f77377439e766e1c5916f79ec2ee27a6c [288/290] mm: vmalloc: convert vread() to vread_iter()
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20230323/202303230226.NucKb3B7-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=d9cab54f77377439e766e1c5916f79ec2ee27a6c
git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git
git fetch --no-tags akpm-mm mm-unstable
git checkout d9cab54f77377439e766e1c5916f79ec2ee27a6c
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303230226.NucKb3B7-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/vmalloc.c:3448:8: warning: no previous prototype for 'zero_iter' [-Wmissing-prototypes]
3448 | size_t zero_iter(struct iov_iter *iter, size_t count)
| ^~~~~~~~~
vim +/zero_iter +3448 mm/vmalloc.c
3442
3443 /*
3444 * Atomically zero bytes in the iterator.
3445 *
3446 * Returns the number of zeroed bytes.
3447 */
> 3448 size_t zero_iter(struct iov_iter *iter, size_t count)
3449 {
3450 size_t remains = count;
3451
3452 while (remains > 0) {
3453 size_t num, copied;
3454
3455 num = remains < PAGE_SIZE ? remains : PAGE_SIZE;
3456 copied = copy_page_to_iter_atomic(ZERO_PAGE(0), 0, num, iter);
3457 remains -= copied;
3458
3459 if (copied < num)
3460 break;
3461 }
3462
3463 return count - remains;
3464 }
3465
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-03-22 18:29 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=202303230226.NucKb3B7-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=lstoakes@gmail.com \
--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