* [openeuler:OLK-6.6 2454/2454] drivers/coda/coda.c:264: warning: Function parameter or member 's_smmu_id' not described in 'is_cc_vmid'
@ 2025-07-03 22:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-03 22:26 UTC (permalink / raw)
To: kernel, y00878127; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 9b85bcf0e6357841885264f42859bec05c9073f4
commit: c5161d7e11a7e30755b2ec55aaebfd500193cbbc [2454/2454] virtCCA supports SR-IOV in CoDA scenarios.
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250704/202507040646.2QNfCtsv-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507040646.2QNfCtsv-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/202507040646.2QNfCtsv-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/coda/coda.c:264: warning: Function parameter or member 's_smmu_id' not described in 'is_cc_vmid'
>> drivers/coda/coda.c:660: warning: Function parameter or member 'pci_dev' not described in 'virtcca_create_ste_entry'
>> drivers/coda/coda.c:660: warning: Excess function parameter 'smmu' description in 'virtcca_create_ste_entry'
>> drivers/coda/coda.c:660: warning: Excess function parameter 'master' description in 'virtcca_create_ste_entry'
>> drivers/coda/coda.c:660: warning: Excess function parameter 'sid' description in 'virtcca_create_ste_entry'
--
>> drivers/iommu/arm/arm-smmu-v3/arm-s-smmu-v3.c:56: warning: Function parameter or member 's_smmu_id' not described in 'virtcca_smmu_cmdq_need_forward'
vim +264 drivers/coda/coda.c
ad540a13eb8292 yangxiangkai 2024-09-20 254
ad540a13eb8292 yangxiangkai 2024-09-20 255 /**
c5161d7e11a7e3 yxk 2025-05-07 256 * is_cc_vmid - Whether the VM is confidential VM
c5161d7e11a7e3 yxk 2025-05-07 257 * @vmid: VM id
ad540a13eb8292 yangxiangkai 2024-09-20 258 *
ad540a13eb8292 yangxiangkai 2024-09-20 259 * Returns:
c5161d7e11a7e3 yxk 2025-05-07 260 * %true if the VM is confidential
c5161d7e11a7e3 yxk 2025-05-07 261 * %false if the VM is not confidential
ad540a13eb8292 yangxiangkai 2024-09-20 262 */
c5161d7e11a7e3 yxk 2025-05-07 263 bool is_cc_vmid(u32 vmid, u64 s_smmu_id)
ad540a13eb8292 yangxiangkai 2024-09-20 @264 {
ad540a13eb8292 yangxiangkai 2024-09-20 265 int bkt;
c5161d7e11a7e3 yxk 2025-05-07 266 struct coda_dev_hash_node *obj;
c5161d7e11a7e3 yxk 2025-05-07 267 bool secure = false;
ad540a13eb8292 yangxiangkai 2024-09-20 268
c5161d7e11a7e3 yxk 2025-05-07 269 spin_lock(&coda_dev_lock);
c5161d7e11a7e3 yxk 2025-05-07 270 hash_for_each(g_coda_dev_htable, bkt, obj, node) {
c5161d7e11a7e3 yxk 2025-05-07 271 if (vmid > 0 && obj->vmid == vmid && obj->s_smmu_id == s_smmu_id) {
c5161d7e11a7e3 yxk 2025-05-07 272 secure = obj->secure;
c5161d7e11a7e3 yxk 2025-05-07 273 spin_unlock(&coda_dev_lock);
c5161d7e11a7e3 yxk 2025-05-07 274 return secure;
c5161d7e11a7e3 yxk 2025-05-07 275 }
ad540a13eb8292 yangxiangkai 2024-09-20 276 }
ad540a13eb8292 yangxiangkai 2024-09-20 277
c5161d7e11a7e3 yxk 2025-05-07 278 spin_unlock(&coda_dev_lock);
c5161d7e11a7e3 yxk 2025-05-07 279 return secure;
ad540a13eb8292 yangxiangkai 2024-09-20 280 }
ad540a13eb8292 yangxiangkai 2024-09-20 281 EXPORT_SYMBOL_GPL(is_cc_vmid);
ad540a13eb8292 yangxiangkai 2024-09-20 282
:::::: The code at line 264 was first introduced by commit
:::::: ad540a13eb8292fc92651b3bf281088a502a85f9 virtcca feature: fix msi iova map
:::::: TO: yangxiangkai <yangxiangkai@huawei.com>
:::::: CC: yangxiangkai <yangxiangkai@huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-03 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 22:26 [openeuler:OLK-6.6 2454/2454] drivers/coda/coda.c:264: warning: Function parameter or member 's_smmu_id' not described in 'is_cc_vmid' kernel test robot
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.