* [peterz-queue:mm/apply-to-page-range 4/6] mm/memory.c:2582:2: error: expected ',' or '; ' before 'return'
@ 2021-02-10 13:39 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-10 13:39 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread* [peterz-queue:mm/apply-to-page-range 4/6] mm/memory.c:2582:2: error: expected ',' or '; ' before 'return'
@ 2021-02-04 16:22 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-04 16:22 UTC (permalink / raw)
To: kbuild-all
[-- 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: d51b76cd8c39902a67847a4b650ce948c0ac9ded
commit: 6fbb66036febbee8833e1eccc1c4fc522bec28a3 [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=6fbb66036febbee8833e1eccc1c4fc522bec28a3
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 6fbb66036febbee8833e1eccc1c4fc522bec28a3
# 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: 45946 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-10 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-10 13:39 [peterz-queue:mm/apply-to-page-range 4/6] mm/memory.c:2582:2: error: expected ',' or '; ' before 'return' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-02-04 16:22 kernel test robot
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.