kvm-ppc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexander Graf <graf@amazon.com>
Cc: oe-kbuild-all@lists.linux.dev, kvm-ppc@vger.kernel.org
Subject: [agraf-2.6:kvm-kho-gmem-test 19/27] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4421:49: warning: 'struct kvm_s2_mmu' declared inside parameter list will not be visible outside of this definition or declaration
Date: Sun, 5 May 2024 02:23:00 +0800	[thread overview]
Message-ID: <202405050208.ErN5HQGM-lkp@intel.com> (raw)

tree:   https://github.com/agraf/linux-2.6.git kvm-kho-gmem-test
head:   9a58862a298a63bad21d05191e28b857063bb9dc
commit: ea39f95803e6da8a46791922be3724b49bea2c7a [19/27] XXX make fdbox work
config: powerpc-powernv_defconfig (https://download.01.org/0day-ci/archive/20240505/202405050208.ErN5HQGM-lkp@intel.com/config)
compiler: powerpc64le-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240505/202405050208.ErN5HQGM-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/202405050208.ErN5HQGM-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4421:49: warning: 'struct kvm_s2_mmu' declared inside parameter list will not be visible outside of this definition or declaration
    4421 | int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long type);
         |                                                 ^~~~~~~~~~
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4422:5: warning: no previous prototype for 'kvm_unwrap_file' [-Wmissing-prototypes]
    4422 | int kvm_unwrap_file(struct file *filp)
         |     ^~~~~~~~~~~~~~~
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_unwrap_file':
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4427:17: warning: statement with no effect [-Wunused-value]
    4427 |                 vcpu;
         |                 ^~~~
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4432:58: error: 'struct kvm_arch' has no member named 'mmu'
    4432 |                 ret = kvm_init_stage2_mmu(kvm, &kvm->arch.mmu, 0);
         |                                                          ^


vim +4421 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c

  4417	
  4418	/* XXX hack for prototype. Needs to move into file ops */
  4419	static struct file_operations kvm_vm_fops;
  4420	/* XXX hack for prototype. Needs to live in arch code */
> 4421	int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long type);
  4422	int kvm_unwrap_file(struct file *filp)
  4423	{
  4424		int ret = 0;
  4425		if (filp->f_op == &kvm_vcpu_fops) {
  4426			struct kvm_vcpu *vcpu = filp->private_data;
  4427			vcpu;
  4428		} else if (filp->f_op == &kvm_vm_fops) {
  4429			struct kvm *kvm = filp->private_data;
  4430	
  4431			kvm->mm = current->mm;
> 4432			ret = kvm_init_stage2_mmu(kvm, &kvm->arch.mmu, 0);
  4433		} else {
  4434			ret = -EINVAL;
  4435		}
  4436	
  4437		return ret;
  4438	}
  4439	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-05-04 18:23 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=202405050208.ErN5HQGM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=graf@amazon.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).