* [ardb:arm64-ro-page-tables-pkvm 10/35] arch/arm64/kvm/hyp/nvhe/early_alloc.c:18:15: warning: no previous prototype for 'hyp_early_alloc_nr_pages'
@ 2021-02-22 18:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-22 18:24 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3167 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: 147019c64ba96b2f39f3e952d2833db8a3f6395b
commit: 266772be0e13ff4b230105c58f217481d9c23d43 [10/35] KVM: arm64: Introduce an early Hyp page allocator
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=266772be0e13ff4b230105c58f217481d9c23d43
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout 266772be0e13ff4b230105c58f217481d9c23d43
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:18:15: warning: no previous prototype for 'hyp_early_alloc_nr_pages' [-Wmissing-prototypes]
18 | unsigned long hyp_early_alloc_nr_pages(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:25:7: warning: no previous prototype for 'hyp_early_alloc_contig' [-Wmissing-prototypes]
25 | void *hyp_early_alloc_contig(unsigned int nr_pages)
| ^~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:46:7: warning: no previous prototype for 'hyp_early_alloc_page' [-Wmissing-prototypes]
46 | void *hyp_early_alloc_page(void *arg)
| ^~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:51:6: warning: no previous prototype for 'hyp_early_alloc_init' [-Wmissing-prototypes]
51 | void hyp_early_alloc_init(unsigned long virt, unsigned long size)
| ^~~~~~~~~~~~~~~~~~~~
vim +/hyp_early_alloc_nr_pages +18 arch/arm64/kvm/hyp/nvhe/early_alloc.c
17
> 18 unsigned long hyp_early_alloc_nr_pages(void)
19 {
20 return (cur - base) >> PAGE_SHIFT;
21 }
22
23 extern void clear_page(void *to);
24
> 25 void *hyp_early_alloc_contig(unsigned int nr_pages)
26 {
27 unsigned long ret = cur, i, p;
28
29 if (!nr_pages)
30 return NULL;
31
32 cur += nr_pages << PAGE_SHIFT;
33 if (cur > end) {
34 cur = ret;
35 return NULL;
36 }
37
38 for (i = 0; i < nr_pages; i++) {
39 p = ret + (i << PAGE_SHIFT);
40 clear_page((void *)(p));
41 }
42
43 return (void *)ret;
44 }
45
> 46 void *hyp_early_alloc_page(void *arg)
47 {
48 return hyp_early_alloc_contig(1);
49 }
50
> 51 void hyp_early_alloc_init(unsigned long virt, unsigned long size)
---
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: 75474 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-22 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 18:24 [ardb:arm64-ro-page-tables-pkvm 10/35] arch/arm64/kvm/hyp/nvhe/early_alloc.c:18:15: warning: no previous prototype for 'hyp_early_alloc_nr_pages' 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.