From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:mm/apply-to-page-range 4/6] mm/memory.c:2582:2: error: expected ',' or '; ' before 'return'
Date: Wed, 10 Feb 2021 21:39:55 +0800 [thread overview]
Message-ID: <202102102151.F4OSvLAz-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2280 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git mm/apply-to-page-range
head: c7e0ff9c0e75727aca201140e679ffcfcc3155f0
commit: 6734b686b6bb06054ae6c380034b15b4dc3c86ac [4/6] mm: Introduce verify_page_range()
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=6734b686b6bb06054ae6c380034b15b4dc3c86ac
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue mm/apply-to-page-range
git checkout 6734b686b6bb06054ae6c380034b15b4dc3c86ac
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/memory.c: In function 'verify_page_range':
>> mm/memory.c:2582:2: error: expected ',' or ';' before 'return'
2582 | return apply_to_page_range(mm, addr, size, vpr_fn, &vpr);
| ^~~~~~
mm/memory.c:2578:18: warning: unused variable 'vpr' [-Wunused-variable]
2578 | struct vpr_data vpr = {
| ^~~
mm/memory.c:2583:1: error: control reaches end of non-void function [-Werror=return-type]
2583 | }
| ^
At top level:
mm/memory.c:2567:12: warning: 'vpr_fn' defined but not used [-Wunused-function]
2567 | static int vpr_fn(pte_t *pte, unsigned long addr, void *data)
| ^~~~~~
cc1: some warnings being treated as errors
vim +2582 mm/memory.c
2572
2573 int verify_page_range(struct mm_struct *mm,
2574 unsigned long addr, unsigned long size,
2575 int (*fn)(pte_t pte, unsigned long addr, void *data),
2576 void *data)
2577 {
2578 struct vpr_data vpr = {
2579 .fn = fn,
2580 .data = data,
2581 }
> 2582 return apply_to_page_range(mm, addr, size, vpr_fn, &vpr);
2583 }
2584 EXPORT_SYMBOL_GPL(verify_page_range);
2585
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45929 bytes --]
next reply other threads:[~2021-02-10 13:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-10 13:39 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-04 16:22 [peterz-queue:mm/apply-to-page-range 4/6] mm/memory.c:2582:2: error: expected ',' or '; ' before 'return' kernel test robot
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=202102102151.F4OSvLAz-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.