linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: kbuild-all@01.org, linux-fsdevel@vger.kernel.org
Subject: [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: Sun, 20 Dec 2015 18:33:31 +0800	[thread overview]
Message-ID: <201512201829.8Li8IcPM%fengguang.wu@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2015-12-20 10:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201512201829.8Li8IcPM%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).