* [openeuler:OLK-5.10 2430/2430] arch/arm64/mm/quick_kexec.c:21:13: warning: no previous prototype for 'reserve_quick_kexec'
@ 2024-12-01 7:25 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-12-01 7:25 UTC (permalink / raw)
To: kernel, Zheng Zengkai; +Cc: oe-kbuild-all
Hi Kefeng,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: a2b4d661a5ca59dd7cf972c1cce8b98422102ab7
commit: d61f4ca086e99bb481961b1120e10e7a4296c392 [2430/2430] arm64: quick_kexec: Move to stand-alone file
config: arm64-randconfig-003-20241114 (https://download.01.org/0day-ci/archive/20241201/202412011507.pSC7pXCi-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241201/202412011507.pSC7pXCi-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/202412011507.pSC7pXCi-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/mm/quick_kexec.c:21:13: warning: no previous prototype for 'reserve_quick_kexec' [-Wmissing-prototypes]
21 | void __init reserve_quick_kexec(void)
| ^~~~~~~~~~~~~~~~~~~
>> arch/arm64/mm/quick_kexec.c:47:13: warning: no previous prototype for 'request_quick_kexec_res' [-Wmissing-prototypes]
47 | void __init request_quick_kexec_res(struct resource *res)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/reserve_quick_kexec +21 arch/arm64/mm/quick_kexec.c
20
> 21 void __init reserve_quick_kexec(void)
22 {
23 unsigned long long mem_start, mem_len;
24
25 mem_len = quick_kexec_res.end;
26 if (mem_len == 0)
27 return;
28
29 /* Current arm64 boot protocol requires 2MB alignment */
30 mem_start = memblock_find_in_range(0, arm64_dma_phys_limit,
31 mem_len, SZ_2M);
32 if (mem_start == 0) {
33 pr_warn("cannot allocate quick kexec mem (size:0x%llx)\n",
34 mem_len);
35 quick_kexec_res.end = 0;
36 return;
37 }
38
39 memblock_reserve(mem_start, mem_len);
40 pr_info("quick kexec mem reserved: 0x%016llx - 0x%016llx (%lld MB)\n",
41 mem_start, mem_start + mem_len, mem_len >> 20);
42
43 quick_kexec_res.start = mem_start;
44 quick_kexec_res.end = mem_start + mem_len - 1;
45 }
46
> 47 void __init request_quick_kexec_res(struct resource *res)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [openeuler:OLK-5.10 2430/2430] arch/arm64/mm/quick_kexec.c:21:13: warning: no previous prototype for 'reserve_quick_kexec'
@ 2024-11-13 19:31 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-11-13 19:31 UTC (permalink / raw)
To: kernel, Zheng Zengkai; +Cc: oe-kbuild-all
Hi Kefeng,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 53677a494016919c9c6715a90a425dc771e5ae26
commit: d61f4ca086e99bb481961b1120e10e7a4296c392 [2430/2430] arm64: quick_kexec: Move to stand-alone file
config: arm64-randconfig-003-20241114 (https://download.01.org/0day-ci/archive/20241114/202411140347.wBO44TXi-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140347.wBO44TXi-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/202411140347.wBO44TXi-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/mm/quick_kexec.c:21:13: warning: no previous prototype for 'reserve_quick_kexec' [-Wmissing-prototypes]
21 | void __init reserve_quick_kexec(void)
| ^~~~~~~~~~~~~~~~~~~
>> arch/arm64/mm/quick_kexec.c:47:13: warning: no previous prototype for 'request_quick_kexec_res' [-Wmissing-prototypes]
47 | void __init request_quick_kexec_res(struct resource *res)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/reserve_quick_kexec +21 arch/arm64/mm/quick_kexec.c
20
> 21 void __init reserve_quick_kexec(void)
22 {
23 unsigned long long mem_start, mem_len;
24
25 mem_len = quick_kexec_res.end;
26 if (mem_len == 0)
27 return;
28
29 /* Current arm64 boot protocol requires 2MB alignment */
30 mem_start = memblock_find_in_range(0, arm64_dma_phys_limit,
31 mem_len, SZ_2M);
32 if (mem_start == 0) {
33 pr_warn("cannot allocate quick kexec mem (size:0x%llx)\n",
34 mem_len);
35 quick_kexec_res.end = 0;
36 return;
37 }
38
39 memblock_reserve(mem_start, mem_len);
40 pr_info("quick kexec mem reserved: 0x%016llx - 0x%016llx (%lld MB)\n",
41 mem_start, mem_start + mem_len, mem_len >> 20);
42
43 quick_kexec_res.start = mem_start;
44 quick_kexec_res.end = mem_start + mem_len - 1;
45 }
46
> 47 void __init request_quick_kexec_res(struct resource *res)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-01 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-01 7:25 [openeuler:OLK-5.10 2430/2430] arch/arm64/mm/quick_kexec.c:21:13: warning: no previous prototype for 'reserve_quick_kexec' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-11-13 19:31 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.