All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, yangxiangkai <yangxiangkai@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 1540/1540] arch/arm64/kvm/../../../virt/kvm/vfio.c:535:6: warning: no previous prototype for 'find_arm_smmu_domain'
Date: Thu, 28 Nov 2024 18:36:55 +0800	[thread overview]
Message-ID: <202411281809.d4MBGHxN-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   321262d8251f07d9439cae39851f2bf2658d8813
commit: c57a5a1f767336eff9721cb833c067657ade31de [1540/1540] virtcca feature: activate confidential vm to set security device s_s2ttbr
config: arm64-randconfig-002-20241128 (https://download.01.org/0day-ci/archive/20241128/202411281809.d4MBGHxN-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241128/202411281809.d4MBGHxN-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/202411281809.d4MBGHxN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/kvm/../../../virt/kvm/vfio.c:535:6: warning: no previous prototype for 'find_arm_smmu_domain' [-Wmissing-prototypes]
     535 | void find_arm_smmu_domain(struct kvm_vfio_file *kvf, struct list_head *smmu_domain_group_list)
         |      ^~~~~~~~~~~~~~~~~~~~


vim +/find_arm_smmu_domain +535 arch/arm64/kvm/../../../virt/kvm/vfio.c

   529	
   530	/**
   531	 * find_arm_smmu_domain - Find smmu domain list from kvm vfio file
   532	 * @kvf: Kvm vfio file
   533	 * @smmu_domain_group_list: List of smmu domain group
   534	 */
 > 535	void find_arm_smmu_domain(struct kvm_vfio_file *kvf, struct list_head *smmu_domain_group_list)
   536	{
   537		struct iommu_group *iommu_group;
   538		int ret = 0;
   539		struct arm_smmu_domain *arm_smmu_domain = NULL;
   540		struct arm_smmu_domain *arm_smmu_domain_node = NULL;
   541	
   542		iommu_group = cvm_vfio_file_iommu_group(kvf->file);
   543		arm_smmu_domain = to_smmu_domain(virtcca_iommu_group_get_domain(iommu_group));
   544		list_for_each_entry(arm_smmu_domain_node,
   545			smmu_domain_group_list, node) {
   546			if (arm_smmu_domain_node == arm_smmu_domain) {
   547				ret = -1;
   548				break;
   549			}
   550		}
   551		if (!ret)
   552			list_add_tail(&arm_smmu_domain->node, smmu_domain_group_list);
   553	}
   554	

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

                 reply	other threads:[~2024-11-28 10:37 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=202411281809.d4MBGHxN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yangxiangkai@huawei.com \
    /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 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.