* [openeuler:openEuler-1.0-LTS 18112/21544] drivers/iommu/arm-smmu-v3-context.c:591:5: warning: no previous prototype for 'arm_smmu_get_cd_mpam'
@ 2024-01-14 18:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-14 18:27 UTC (permalink / raw)
To: kernel; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 1f0983450549eeea71fb9333517330947a779262
commit: 2b7032bc021bef1eeca51dac8213fd3abce61dc4 [18112/21544] iommu/arm-smmu-v3: Add support to get SMMU mpam configuration
config: arm64-randconfig-001-20240112 (https://download.01.org/0day-ci/archive/20240115/202401150234.kkcdLRso-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240115/202401150234.kkcdLRso-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/202401150234.kkcdLRso-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-context.c:591:5: warning: no previous prototype for 'arm_smmu_get_cd_mpam' [-Wmissing-prototypes]
591 | int arm_smmu_get_cd_mpam(struct iommu_pasid_table_ops *ops,
| ^~~~~~~~~~~~~~~~~~~~
--
drivers/iommu/arm-smmu-v3.c:4296:5: warning: no previous prototype for 'arm_smmu_set_dev_mpam' [-Wmissing-prototypes]
4296 | int arm_smmu_set_dev_mpam(struct device *dev, int ssid, int partid, int pmg,
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/iommu/arm-smmu-v3.c:4338:5: warning: no previous prototype for 'arm_smmu_get_dev_mpam' [-Wmissing-prototypes]
4338 | int arm_smmu_get_dev_mpam(struct device *dev, int ssid, int *partid, int *pmg,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu-v3.c:4298: warning: Function parameter or member 'dev' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4298: warning: Function parameter or member 'ssid' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4298: warning: Function parameter or member 'partid' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4298: warning: Function parameter or member 'pmg' not described in 'arm_smmu_set_dev_mpam'
drivers/iommu/arm-smmu-v3.c:4298: warning: Function parameter or member 's1mpam' not described in 'arm_smmu_set_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4340: warning: Function parameter or member 'ssid' not described in 'arm_smmu_get_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4340: warning: Function parameter or member 'partid' not described in 'arm_smmu_get_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4340: warning: Function parameter or member 'pmg' not described in 'arm_smmu_get_dev_mpam'
>> drivers/iommu/arm-smmu-v3.c:4340: warning: Function parameter or member 's1mpam' not described in 'arm_smmu_get_dev_mpam'
vim +/arm_smmu_get_cd_mpam +591 drivers/iommu/arm-smmu-v3-context.c
590
> 591 int arm_smmu_get_cd_mpam(struct iommu_pasid_table_ops *ops,
592 int ssid, int *partid, int *pmg)
593 {
594 struct arm_smmu_cd_tables *tbl = pasid_ops_to_tables(ops);
595 u64 val;
596 __le64 *cdptr = arm_smmu_get_cd_ptr(tbl, ssid);
597
598 if (!cdptr)
599 return -ENOMEM;
600
601 val = le64_to_cpu(cdptr[5]);
602 *partid = FIELD_GET(CTXDESC_CD_5_PARTID_MASK, val);
603 *pmg = FIELD_GET(CTXDESC_CD_5_PMG_MASK, val);
604
605 return 0;
606 }
607
--
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:[~2024-01-14 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-14 18:27 [openeuler:openEuler-1.0-LTS 18112/21544] drivers/iommu/arm-smmu-v3-context.c:591:5: warning: no previous prototype for 'arm_smmu_get_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.