tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 771a207d1ee9f38da8c0cee1412228f18b900bac commit: e37dfd65731dc4f001fa7dfa7f705e6840017d5a [7077/9540] perf: arm_cspmu: Add support for ARM CoreSight PMU driver config: loongarch-allmodconfig compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e37dfd65731dc4f001fa7dfa7f705e6840017d5a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout e37dfd65731dc4f001fa7dfa7f705e6840017d5a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/iio/magnetometer/ drivers/perf/arm_cspmu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the linux-next/master HEAD 771a207d1ee9f38da8c0cee1412228f18b900bac builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/perf/arm_cspmu/arm_cspmu.c: In function 'arm_cspmu_get_cpus': >> drivers/perf/arm_cspmu/arm_cspmu.c:1105:29: error: implicit declaration of function 'get_acpi_id_for_cpu' [-Werror=implicit-function-declaration] 1105 | get_acpi_id_for_cpu(cpu)) { | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/get_acpi_id_for_cpu +1105 drivers/perf/arm_cspmu/arm_cspmu.c 1090 1091 static int arm_cspmu_get_cpus(struct arm_cspmu *cspmu) 1092 { 1093 struct device *dev; 1094 struct acpi_apmt_node *apmt_node; 1095 int affinity_flag; 1096 int cpu; 1097 1098 dev = cspmu->pmu.dev; 1099 apmt_node = cspmu->apmt_node; 1100 affinity_flag = apmt_node->flags & ACPI_APMT_FLAGS_AFFINITY; 1101 1102 if (affinity_flag == ACPI_APMT_FLAGS_AFFINITY_PROC) { 1103 for_each_possible_cpu(cpu) { 1104 if (apmt_node->proc_affinity == > 1105 get_acpi_id_for_cpu(cpu)) { 1106 cpumask_set_cpu(cpu, &cspmu->associated_cpus); 1107 break; 1108 } 1109 } 1110 } else { 1111 for_each_possible_cpu(cpu) { 1112 if (arm_cspmu_find_cpu_container( 1113 cpu, apmt_node->proc_affinity)) 1114 continue; 1115 1116 cpumask_set_cpu(cpu, &cspmu->associated_cpus); 1117 } 1118 } 1119 1120 if (cpumask_empty(&cspmu->associated_cpus)) { 1121 dev_dbg(dev, "No cpu associated with the PMU\n"); 1122 return -ENODEV; 1123 } 1124 1125 return 0; 1126 } 1127 -- 0-DAY CI Kernel Test Service https://01.org/lkp