* [vfs:work.pages 45/67] arch/arm64/kvm/../../../arch/arm/kvm/arm.c:973:2: warning: passing argument 3 of '__cpu_init_hyp_mode' makes integer from pointer without a cast
@ 2015-12-20 10:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-12-20 10:33 UTC (permalink / raw)
To: Al Viro; +Cc: kbuild-all, linux-fsdevel
[-- Attachment #1: Type: text/plain, Size: 3574 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.pages
head: adcc9126391f7e43d3fdc18c820f13c52125cf1f
commit: d9e261bbc6f81cdeb74f3ec35722a54ff845dde9 [45/67] arm: switch kvm_arm_hyp_stack_page to void *
config: arm64-defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d9e261bbc6f81cdeb74f3ec35722a54ff845dde9
# save the attached .config to linux build tree
make.cross ARCH=arm64
All warnings (new ones prefixed by >>):
arch/arm64/kvm/../../../arch/arm/kvm/arm.c: In function 'cpu_init_hyp_mode':
>> arch/arm64/kvm/../../../arch/arm/kvm/arm.c:973:2: warning: passing argument 3 of '__cpu_init_hyp_mode' makes integer from pointer without a cast
__cpu_init_hyp_mode(boot_pgd_ptr, pgd_ptr, hyp_stack_ptr, vector_ptr);
^
In file included from include/linux/kvm_host.h:35:0,
from arch/arm64/kvm/../../../arch/arm/kvm/arm.c:23:
arch/arm64/include/asm/kvm_host.h:237:20: note: expected 'long unsigned int' but argument is of type 'void *'
static inline void __cpu_init_hyp_mode(phys_addr_t boot_pgd_ptr,
^
vim +/__cpu_init_hyp_mode +973 arch/arm64/kvm/../../../arch/arm/kvm/arm.c
d157f4a5 Marc Zyngier 2013-04-12 957 static void cpu_init_hyp_mode(void *dummy)
342cd0ab Christoffer Dall 2013-01-20 958 {
dac288f7 Marc Zyngier 2013-05-14 959 phys_addr_t boot_pgd_ptr;
dac288f7 Marc Zyngier 2013-05-14 960 phys_addr_t pgd_ptr;
d9e261bb Al Viro 2015-12-19 961 void *hyp_stack_ptr, *stack_page;
342cd0ab Christoffer Dall 2013-01-20 962 unsigned long vector_ptr;
342cd0ab Christoffer Dall 2013-01-20 963
342cd0ab Christoffer Dall 2013-01-20 964 /* Switch from the HYP stub to our own HYP init vector */
5a677ce0 Marc Zyngier 2013-04-12 965 __hyp_set_vectors(kvm_get_idmap_vector());
342cd0ab Christoffer Dall 2013-01-20 966
dac288f7 Marc Zyngier 2013-05-14 967 boot_pgd_ptr = kvm_mmu_get_boot_httbr();
dac288f7 Marc Zyngier 2013-05-14 968 pgd_ptr = kvm_mmu_get_httbr();
1436c1aa Christoph Lameter 2013-10-21 969 stack_page = __this_cpu_read(kvm_arm_hyp_stack_page);
342cd0ab Christoffer Dall 2013-01-20 970 hyp_stack_ptr = stack_page + PAGE_SIZE;
342cd0ab Christoffer Dall 2013-01-20 971 vector_ptr = (unsigned long)__kvm_hyp_vector;
342cd0ab Christoffer Dall 2013-01-20 972
5a677ce0 Marc Zyngier 2013-04-12 @973 __cpu_init_hyp_mode(boot_pgd_ptr, pgd_ptr, hyp_stack_ptr, vector_ptr);
56c7f5e7 Alex Benn�e 2015-07-07 974
56c7f5e7 Alex Benn�e 2015-07-07 975 kvm_arm_init_debug();
342cd0ab Christoffer Dall 2013-01-20 976 }
342cd0ab Christoffer Dall 2013-01-20 977
d157f4a5 Marc Zyngier 2013-04-12 978 static int hyp_init_cpu_notify(struct notifier_block *self,
d157f4a5 Marc Zyngier 2013-04-12 979 unsigned long action, void *cpu)
d157f4a5 Marc Zyngier 2013-04-12 980 {
d157f4a5 Marc Zyngier 2013-04-12 981 switch (action) {
:::::: The code at line 973 was first introduced by commit
:::::: 5a677ce044f18a341ab942e23516e52ad89f7687 ARM: KVM: switch to a dual-step HYP init code
:::::: TO: Marc Zyngier <marc.zyngier@arm.com>
:::::: CC: Christoffer Dall <cdall@cs.columbia.edu>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 18685 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-20 10:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-20 10:33 [vfs:work.pages 45/67] arch/arm64/kvm/../../../arch/arm/kvm/arm.c:973:2: warning: passing argument 3 of '__cpu_init_hyp_mode' makes integer from pointer without a cast kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).