[asahilinux:sven/20210829 1/13] arch/arm64/kernel/traps.c:905:6: warning: no previous prototype for 'print_apple_serror_regs'
From: kernel test robot
Date: Sun Aug 29 2021 - 19:46:13 EST
tree: https://github.com/AsahiLinux/linux sven/20210829
head: 6db7d21b57b368ce4c62e201bded63d43b5940f9
commit: 53db7b68cf24a6e61acc47a721b9273af115172a [1/13] HACK/DONOTMERGE: print M1 SError sys regs
config: arm64-randconfig-r022-20210830 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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://github.com/AsahiLinux/linux/commit/53db7b68cf24a6e61acc47a721b9273af115172a
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux sven/20210829
git checkout 53db7b68cf24a6e61acc47a721b9273af115172a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
arch/arm64/kernel/traps.c:813:43: warning: initialized field overwritten [-Woverride-init]
813 | [ESR_ELx_EC_HVC64] = "HVC (AArch64)",
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:813:43: note: (near initialization for 'esr_class_str[22]')
arch/arm64/kernel/traps.c:814:43: warning: initialized field overwritten [-Woverride-init]
814 | [ESR_ELx_EC_SMC64] = "SMC (AArch64)",
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:814:43: note: (near initialization for 'esr_class_str[23]')
arch/arm64/kernel/traps.c:815:43: warning: initialized field overwritten [-Woverride-init]
815 | [ESR_ELx_EC_SYS64] = "MSR/MRS (AArch64)",
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:815:43: note: (near initialization for 'esr_class_str[24]')
arch/arm64/kernel/traps.c:816:43: warning: initialized field overwritten [-Woverride-init]
816 | [ESR_ELx_EC_SVE] = "SVE",
| ^~~~~
arch/arm64/kernel/traps.c:816:43: note: (near initialization for 'esr_class_str[25]')
arch/arm64/kernel/traps.c:817:43: warning: initialized field overwritten [-Woverride-init]
817 | [ESR_ELx_EC_ERET] = "ERET/ERETAA/ERETAB",
| ^~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:817:43: note: (near initialization for 'esr_class_str[26]')
arch/arm64/kernel/traps.c:818:43: warning: initialized field overwritten [-Woverride-init]
818 | [ESR_ELx_EC_FPAC] = "FPAC",
| ^~~~~~
arch/arm64/kernel/traps.c:818:43: note: (near initialization for 'esr_class_str[28]')
arch/arm64/kernel/traps.c:819:43: warning: initialized field overwritten [-Woverride-init]
819 | [ESR_ELx_EC_IMP_DEF] = "EL3 IMP DEF",
| ^~~~~~~~~~~~~
arch/arm64/kernel/traps.c:819:43: note: (near initialization for 'esr_class_str[31]')
arch/arm64/kernel/traps.c:820:43: warning: initialized field overwritten [-Woverride-init]
820 | [ESR_ELx_EC_IABT_LOW] = "IABT (lower EL)",
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:820:43: note: (near initialization for 'esr_class_str[32]')
arch/arm64/kernel/traps.c:821:43: warning: initialized field overwritten [-Woverride-init]
821 | [ESR_ELx_EC_IABT_CUR] = "IABT (current EL)",
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:821:43: note: (near initialization for 'esr_class_str[33]')
arch/arm64/kernel/traps.c:822:43: warning: initialized field overwritten [-Woverride-init]
822 | [ESR_ELx_EC_PC_ALIGN] = "PC Alignment",
| ^~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:822:43: note: (near initialization for 'esr_class_str[34]')
arch/arm64/kernel/traps.c:823:43: warning: initialized field overwritten [-Woverride-init]
823 | [ESR_ELx_EC_DABT_LOW] = "DABT (lower EL)",
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:823:43: note: (near initialization for 'esr_class_str[36]')
arch/arm64/kernel/traps.c:824:43: warning: initialized field overwritten [-Woverride-init]
824 | [ESR_ELx_EC_DABT_CUR] = "DABT (current EL)",
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:824:43: note: (near initialization for 'esr_class_str[37]')
arch/arm64/kernel/traps.c:825:43: warning: initialized field overwritten [-Woverride-init]
825 | [ESR_ELx_EC_SP_ALIGN] = "SP Alignment",
| ^~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:825:43: note: (near initialization for 'esr_class_str[38]')
arch/arm64/kernel/traps.c:826:43: warning: initialized field overwritten [-Woverride-init]
826 | [ESR_ELx_EC_FP_EXC32] = "FP (AArch32)",
| ^~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:826:43: note: (near initialization for 'esr_class_str[40]')
arch/arm64/kernel/traps.c:827:43: warning: initialized field overwritten [-Woverride-init]
827 | [ESR_ELx_EC_FP_EXC64] = "FP (AArch64)",
| ^~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:827:43: note: (near initialization for 'esr_class_str[44]')
arch/arm64/kernel/traps.c:828:43: warning: initialized field overwritten [-Woverride-init]
828 | [ESR_ELx_EC_SERROR] = "SError",
| ^~~~~~~~
arch/arm64/kernel/traps.c:828:43: note: (near initialization for 'esr_class_str[47]')
arch/arm64/kernel/traps.c:829:43: warning: initialized field overwritten [-Woverride-init]
829 | [ESR_ELx_EC_BREAKPT_LOW] = "Breakpoint (lower EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:829:43: note: (near initialization for 'esr_class_str[48]')
arch/arm64/kernel/traps.c:830:43: warning: initialized field overwritten [-Woverride-init]
830 | [ESR_ELx_EC_BREAKPT_CUR] = "Breakpoint (current EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:830:43: note: (near initialization for 'esr_class_str[49]')
arch/arm64/kernel/traps.c:831:43: warning: initialized field overwritten [-Woverride-init]
831 | [ESR_ELx_EC_SOFTSTP_LOW] = "Software Step (lower EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:831:43: note: (near initialization for 'esr_class_str[50]')
arch/arm64/kernel/traps.c:832:43: warning: initialized field overwritten [-Woverride-init]
832 | [ESR_ELx_EC_SOFTSTP_CUR] = "Software Step (current EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:832:43: note: (near initialization for 'esr_class_str[51]')
arch/arm64/kernel/traps.c:833:43: warning: initialized field overwritten [-Woverride-init]
833 | [ESR_ELx_EC_WATCHPT_LOW] = "Watchpoint (lower EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:833:43: note: (near initialization for 'esr_class_str[52]')
arch/arm64/kernel/traps.c:834:43: warning: initialized field overwritten [-Woverride-init]
834 | [ESR_ELx_EC_WATCHPT_CUR] = "Watchpoint (current EL)",
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:834:43: note: (near initialization for 'esr_class_str[53]')
arch/arm64/kernel/traps.c:835:43: warning: initialized field overwritten [-Woverride-init]
835 | [ESR_ELx_EC_BKPT32] = "BKPT (AArch32)",
| ^~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:835:43: note: (near initialization for 'esr_class_str[56]')
arch/arm64/kernel/traps.c:836:43: warning: initialized field overwritten [-Woverride-init]
836 | [ESR_ELx_EC_VECTOR32] = "Vector catch (AArch32)",
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:836:43: note: (near initialization for 'esr_class_str[58]')
arch/arm64/kernel/traps.c:837:43: warning: initialized field overwritten [-Woverride-init]
837 | [ESR_ELx_EC_BRK64] = "BRK (AArch64)",
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:837:43: note: (near initialization for 'esr_class_str[60]')
>> arch/arm64/kernel/traps.c:905:6: warning: no previous prototype for 'print_apple_serror_regs' [-Wmissing-prototypes]
905 | void print_apple_serror_regs(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/traps.c:1082:12: warning: no previous prototype for 'early_brk64' [-Wmissing-prototypes]
1082 | int __init early_brk64(unsigned long addr, unsigned int esr,
| ^~~~~~~~~~~
vim +/print_apple_serror_regs +905 arch/arm64/kernel/traps.c
904
> 905 void print_apple_serror_regs(void)
906 {
907 printk("L2C_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_L2C_ERR_STS));
908 printk("L2C_ERR_ADR: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_L2C_ERR_ADR));
909 printk("L2C_ERR_INF: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_L2C_ERR_INF));
910
911 if (!(read_sysreg_s(SYS_MPIDR_EL1) & (1 << 16))) {
912 printk("E_LSU_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_E_LSU_ERR_STS));
913 printk("E_FED_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_E_FED_ERR_STS));
914 printk("E_MMU_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_E_MMU_ERR_STS));
915 } else {
916 printk("LSU_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_LSU_ERR_STS));
917 printk("FED_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_FED_ERR_STS));
918 printk("MMU_ERR_STS: 0x%llx\n", read_sysreg_s(SYS_IMP_APL_MMU_ERR_STS));
919 }
920 }
921
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip