drivers/perf/arm_dsu_pmu.c:641: warning: Function parameter or member 'dev' not described in 'dsu_pmu_acpi_get_cpus'

From: kernel test robot
Date: Sat Dec 09 2023 - 07:44:26 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f2e8a57ee9036c7d5443382b6c3c09b51a92ec7e
commit: 2b694fc92a34e8c8b774a17266656d72b8cd4429 perf: arm_dsu: Support DSU ACPI devices
date: 3 years, 3 months ago
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20231209/202312092000.8ltwotjt-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231209/202312092000.8ltwotjt-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312092000.8ltwotjt-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/perf/arm_dsu_pmu.c:383: warning: Function parameter or member 'event' not described in 'dsu_pmu_set_event_period'
drivers/perf/arm_dsu_pmu.c:611: warning: Function parameter or member 'dev' not described in 'dsu_pmu_dt_get_cpus'
drivers/perf/arm_dsu_pmu.c:611: warning: Function parameter or member 'mask' not described in 'dsu_pmu_dt_get_cpus'
>> drivers/perf/arm_dsu_pmu.c:641: warning: Function parameter or member 'dev' not described in 'dsu_pmu_acpi_get_cpus'
>> drivers/perf/arm_dsu_pmu.c:641: warning: Function parameter or member 'mask' not described in 'dsu_pmu_acpi_get_cpus'


vim +641 drivers/perf/arm_dsu_pmu.c

635
636 /**
637 * dsu_pmu_acpi_get_cpus: Get the list of CPUs in the cluster
638 * from ACPI.
639 */
640 static int dsu_pmu_acpi_get_cpus(struct device *dev, cpumask_t *mask)
> 641 {
642 #ifdef CONFIG_ACPI
643 int cpu;
644
645 /*
646 * A dsu pmu node is inside a cluster parent node along with cpu nodes.
647 * We need to find out all cpus that have the same parent with this pmu.
648 */
649 for_each_possible_cpu(cpu) {
650 struct acpi_device *acpi_dev;
651 struct device *cpu_dev = get_cpu_device(cpu);
652
653 if (!cpu_dev)
654 continue;
655
656 acpi_dev = ACPI_COMPANION(cpu_dev);
657 if (acpi_dev &&
658 acpi_dev->parent == ACPI_COMPANION(dev)->parent)
659 cpumask_set_cpu(cpu, mask);
660 }
661 #endif
662
663 return 0;
664 }
665

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