* [openeuler:openEuler-1.0-LTS 1942/1942] drivers/iommu/arm-smmu-v3-context.c:569:5: warning: no previous prototype for 'arm_smmu_set_cd_mpam'
@ 2025-12-13 23:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-13 23:01 UTC (permalink / raw)
To: kernel, Yang Yingliang; +Cc: oe-kbuild-all
Hi Xingang,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: 7c01a111ee8606b0c1986bb624808769d4236742 [1942/1942] iommu/arm-smmu-v3: Add support to configure mpam in STE/CD context
config: arm64-randconfig-002-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140721.kLxdCMUB-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140721.kLxdCMUB-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/202512140721.kLxdCMUB-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iommu/arm-smmu-v3-context.c:569:5: warning: no previous prototype for 'arm_smmu_set_cd_mpam' [-Wmissing-prototypes]
569 | int arm_smmu_set_cd_mpam(struct iommu_pasid_table_ops *ops,
| ^~~~~~~~~~~~~~~~~~~~
--
drivers/iommu/arm-smmu-v3.c:4267:5: warning: no previous prototype for 'arm_smmu_set_dev_mpam' [-Wmissing-prototypes]
4267 | int arm_smmu_set_dev_mpam(struct device *dev, int ssid, int partid, int pmg,
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/iommu/arm-smmu-v3.c:4269: warning: Function parameter or member 'dev' not described in 'arm_smmu_set_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4269: warning: Function parameter or member 'ssid' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4269: warning: Function parameter or member 'partid' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4269: warning: Function parameter or member 'pmg' not described in 'arm_smmu_set_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4269: warning: Function parameter or member 's1mpam' not described in 'arm_smmu_set_dev_mpam'
vim +/arm_smmu_set_cd_mpam +569 drivers/iommu/arm-smmu-v3-context.c
568
> 569 int arm_smmu_set_cd_mpam(struct iommu_pasid_table_ops *ops,
570 int ssid, int partid, int pmg)
571 {
572 struct arm_smmu_cd_tables *tbl = pasid_ops_to_tables(ops);
573 u64 val;
574 __le64 *cdptr = arm_smmu_get_cd_ptr(tbl, ssid);
575
576 if (!cdptr)
577 return -ENOMEM;
578
579 val = le64_to_cpu(cdptr[5]);
580 val &= ~CTXDESC_CD_5_PARTID_MASK;
581 val |= FIELD_PREP(CTXDESC_CD_5_PARTID_MASK, partid);
582 val &= ~CTXDESC_CD_5_PMG_MASK;
583 val |= FIELD_PREP(CTXDESC_CD_5_PMG_MASK, pmg);
584 WRITE_ONCE(cdptr[5], cpu_to_le64(val));
585
586 iommu_pasid_flush(&tbl->pasid, ssid, true);
587
588 return 0;
589 }
590
--
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-12-13 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-13 23:01 [openeuler:openEuler-1.0-LTS 1942/1942] drivers/iommu/arm-smmu-v3-context.c:569:5: warning: no previous prototype for 'arm_smmu_set_cd_mpam' 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.