Hi Ruidong, kernel test robot noticed the following build errors: [auto build test ERROR on rafael-pm/linux-next] [also build test ERROR on rafael-pm/bleeding-edge arm64/for-next/core ras/edac-for-next linus/master tip/smp/core v6.13-rc7 next-20250116] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ruidong-Tian/ACPI-RAS-AEST-Initial-AEST-driver/20250115-164601 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20250115084228.107573-4-tianruidong%40linux.alibaba.com patch subject: [PATCH v3 3/5] RAS/AEST: Introduce AEST inject interface to test AEST driver config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250117/202501171406.o7oztilo-lkp@xxxxxxxxx/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250117/202501171406.o7oztilo-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/202501171406.o7oztilo-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/ras/aest/aest-core.c:280:13: error: static declaration of 'aest_proc_record' follows non-static declaration 280 | static void aest_proc_record(struct aest_record *record, void *data) | ^ drivers/ras/aest/aest.h:338:6: note: previous declaration is here 338 | void aest_proc_record(struct aest_record *record, void *data); | ^ 1 error generated. vim +/aest_proc_record +280 drivers/ras/aest/aest-core.c b6c745ae1213b2 Ruidong Tian 2025-01-15 279 b6c745ae1213b2 Ruidong Tian 2025-01-15 @280 static void aest_proc_record(struct aest_record *record, void *data) b6c745ae1213b2 Ruidong Tian 2025-01-15 281 { b6c745ae1213b2 Ruidong Tian 2025-01-15 282 struct ras_ext_regs regs = {0}; b6c745ae1213b2 Ruidong Tian 2025-01-15 283 int *count = data; b6c745ae1213b2 Ruidong Tian 2025-01-15 284 b6c745ae1213b2 Ruidong Tian 2025-01-15 285 regs.err_status = record_read(record, ERXSTATUS); b6c745ae1213b2 Ruidong Tian 2025-01-15 286 if (!(regs.err_status & ERR_STATUS_V)) b6c745ae1213b2 Ruidong Tian 2025-01-15 287 return; b6c745ae1213b2 Ruidong Tian 2025-01-15 288 b6c745ae1213b2 Ruidong Tian 2025-01-15 289 (*count)++; b6c745ae1213b2 Ruidong Tian 2025-01-15 290 b6c745ae1213b2 Ruidong Tian 2025-01-15 291 if (regs.err_status & ERR_STATUS_AV) b6c745ae1213b2 Ruidong Tian 2025-01-15 292 regs.err_addr = record_read(record, ERXADDR); b6c745ae1213b2 Ruidong Tian 2025-01-15 293 b6c745ae1213b2 Ruidong Tian 2025-01-15 294 regs.err_fr = record->fr; b6c745ae1213b2 Ruidong Tian 2025-01-15 295 regs.err_ctlr = record_read(record, ERXCTLR); b6c745ae1213b2 Ruidong Tian 2025-01-15 296 b6c745ae1213b2 Ruidong Tian 2025-01-15 297 if (regs.err_status & ERR_STATUS_MV) { b6c745ae1213b2 Ruidong Tian 2025-01-15 298 regs.err_misc[0] = record_read(record, ERXMISC0); b6c745ae1213b2 Ruidong Tian 2025-01-15 299 regs.err_misc[1] = record_read(record, ERXMISC1); b6c745ae1213b2 Ruidong Tian 2025-01-15 300 if (record->node->version >= ID_AA64PFR0_EL1_RAS_V1P1) { b6c745ae1213b2 Ruidong Tian 2025-01-15 301 regs.err_misc[2] = record_read(record, ERXMISC2); b6c745ae1213b2 Ruidong Tian 2025-01-15 302 regs.err_misc[3] = record_read(record, ERXMISC3); b6c745ae1213b2 Ruidong Tian 2025-01-15 303 } b6c745ae1213b2 Ruidong Tian 2025-01-15 304 b6c745ae1213b2 Ruidong Tian 2025-01-15 305 if (record->node->info->interface_hdr->flags & b6c745ae1213b2 Ruidong Tian 2025-01-15 306 AEST_XFACE_FLAG_CLEAR_MISC) { b6c745ae1213b2 Ruidong Tian 2025-01-15 307 record_write(record, ERXMISC0, 0); b6c745ae1213b2 Ruidong Tian 2025-01-15 308 record_write(record, ERXMISC1, 0); b6c745ae1213b2 Ruidong Tian 2025-01-15 309 if (record->node->version >= ID_AA64PFR0_EL1_RAS_V1P1) { b6c745ae1213b2 Ruidong Tian 2025-01-15 310 record_write(record, ERXMISC2, 0); b6c745ae1213b2 Ruidong Tian 2025-01-15 311 record_write(record, ERXMISC3, 0); b6c745ae1213b2 Ruidong Tian 2025-01-15 312 } b6c745ae1213b2 Ruidong Tian 2025-01-15 313 /* ce count is 0 if record do not support ce */ b6c745ae1213b2 Ruidong Tian 2025-01-15 314 } else if (record->ce.count > 0) b6c745ae1213b2 Ruidong Tian 2025-01-15 315 record_write(record, ERXMISC0, record->ce.reg_val); b6c745ae1213b2 Ruidong Tian 2025-01-15 316 } b6c745ae1213b2 Ruidong Tian 2025-01-15 317 b6c745ae1213b2 Ruidong Tian 2025-01-15 318 /* panic if unrecoverable and uncontainable error encountered */ b6c745ae1213b2 Ruidong Tian 2025-01-15 319 if ((regs.err_status & ERR_STATUS_UE) && b6c745ae1213b2 Ruidong Tian 2025-01-15 320 (regs.err_status & ERR_STATUS_UET) > ERR_STATUS_UET_UEU) b6c745ae1213b2 Ruidong Tian 2025-01-15 321 aest_panic(record, ®s, "AEST: unrecoverable error encountered"); b6c745ae1213b2 Ruidong Tian 2025-01-15 322 b6c745ae1213b2 Ruidong Tian 2025-01-15 323 aest_log(record, ®s); b6c745ae1213b2 Ruidong Tian 2025-01-15 324 b6c745ae1213b2 Ruidong Tian 2025-01-15 325 /* Write-one-to-clear the bits we've seen */ b6c745ae1213b2 Ruidong Tian 2025-01-15 326 regs.err_status &= ERR_STATUS_W1TC; b6c745ae1213b2 Ruidong Tian 2025-01-15 327 b6c745ae1213b2 Ruidong Tian 2025-01-15 328 /* Multi bit filed need to write all-ones to clear. */ b6c745ae1213b2 Ruidong Tian 2025-01-15 329 if (regs.err_status & ERR_STATUS_CE) b6c745ae1213b2 Ruidong Tian 2025-01-15 330 regs.err_status |= ERR_STATUS_CE; b6c745ae1213b2 Ruidong Tian 2025-01-15 331 b6c745ae1213b2 Ruidong Tian 2025-01-15 332 /* Multi bit filed need to write all-ones to clear. */ b6c745ae1213b2 Ruidong Tian 2025-01-15 333 if (regs.err_status & ERR_STATUS_UET) b6c745ae1213b2 Ruidong Tian 2025-01-15 334 regs.err_status |= ERR_STATUS_UET; b6c745ae1213b2 Ruidong Tian 2025-01-15 335 b6c745ae1213b2 Ruidong Tian 2025-01-15 336 record_write(record, ERXSTATUS, regs.err_status); b6c745ae1213b2 Ruidong Tian 2025-01-15 337 } b6c745ae1213b2 Ruidong Tian 2025-01-15 338 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki