[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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
:::::: CC: Christoffer Dall <cdall@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux