lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110091011.ESAbDW9s-lkp@intel.com>
Date:   Sat, 9 Oct 2021 10:49:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mark:arm64/uaccess/rework 17/19] arch/arm64/kernel/traps.c:443:5:
 warning: no previous prototype for 'hark_foo'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/uaccess/rework
head:   692de878f919de31942d0d28571b5e6f32c7135e
commit: d8e501ad8a85b31fbff728b8bb17e89e58076c3d [17/19] HACK: test
config: arm64-randconfig-r025-20211008 (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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=d8e501ad8a85b31fbff728b8bb17e89e58076c3d
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/uaccess/rework
        git checkout d8e501ad8a85b31fbff728b8bb17e89e58076c3d
        # 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@...el.com>

All warnings (new ones prefixed by >>):

>> arch/arm64/kernel/traps.c:443:5: warning: no previous prototype for 'hark_foo' [-Wmissing-prototypes]
     443 | int hark_foo(int __user *thing)
         |     ^~~~~~~~
   arch/arm64/kernel/traps.c:802:43: warning: initialized field overwritten [-Woverride-init]
     802 |         [ESR_ELx_EC_UNKNOWN]            = "Unknown/Uncategorized",
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:802:43: note: (near initialization for 'esr_class_str[0]')
   arch/arm64/kernel/traps.c:803:43: warning: initialized field overwritten [-Woverride-init]
     803 |         [ESR_ELx_EC_WFx]                = "WFI/WFE",
         |                                           ^~~~~~~~~
   arch/arm64/kernel/traps.c:803:43: note: (near initialization for 'esr_class_str[1]')
   arch/arm64/kernel/traps.c:804:43: warning: initialized field overwritten [-Woverride-init]
     804 |         [ESR_ELx_EC_CP15_32]            = "CP15 MCR/MRC",
         |                                           ^~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:804:43: note: (near initialization for 'esr_class_str[3]')
   arch/arm64/kernel/traps.c:805:43: warning: initialized field overwritten [-Woverride-init]
     805 |         [ESR_ELx_EC_CP15_64]            = "CP15 MCRR/MRRC",
         |                                           ^~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:805:43: note: (near initialization for 'esr_class_str[4]')
   arch/arm64/kernel/traps.c:806:43: warning: initialized field overwritten [-Woverride-init]
     806 |         [ESR_ELx_EC_CP14_MR]            = "CP14 MCR/MRC",
         |                                           ^~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:806:43: note: (near initialization for 'esr_class_str[5]')
   arch/arm64/kernel/traps.c:807:43: warning: initialized field overwritten [-Woverride-init]
     807 |         [ESR_ELx_EC_CP14_LS]            = "CP14 LDC/STC",
         |                                           ^~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:807:43: note: (near initialization for 'esr_class_str[6]')
   arch/arm64/kernel/traps.c:808:43: warning: initialized field overwritten [-Woverride-init]
     808 |         [ESR_ELx_EC_FP_ASIMD]           = "ASIMD",
         |                                           ^~~~~~~
   arch/arm64/kernel/traps.c:808:43: note: (near initialization for 'esr_class_str[7]')
   arch/arm64/kernel/traps.c:809:43: warning: initialized field overwritten [-Woverride-init]
     809 |         [ESR_ELx_EC_CP10_ID]            = "CP10 MRC/VMRS",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:809:43: note: (near initialization for 'esr_class_str[8]')
   arch/arm64/kernel/traps.c:810:43: warning: initialized field overwritten [-Woverride-init]
     810 |         [ESR_ELx_EC_PAC]                = "PAC",
         |                                           ^~~~~
   arch/arm64/kernel/traps.c:810:43: note: (near initialization for 'esr_class_str[9]')
   arch/arm64/kernel/traps.c:811:43: warning: initialized field overwritten [-Woverride-init]
     811 |         [ESR_ELx_EC_CP14_64]            = "CP14 MCRR/MRRC",
         |                                           ^~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:811:43: note: (near initialization for 'esr_class_str[12]')
   arch/arm64/kernel/traps.c:812:43: warning: initialized field overwritten [-Woverride-init]
     812 |         [ESR_ELx_EC_BTI]                = "BTI",
         |                                           ^~~~~
   arch/arm64/kernel/traps.c:812:43: note: (near initialization for 'esr_class_str[13]')
   arch/arm64/kernel/traps.c:813:43: warning: initialized field overwritten [-Woverride-init]
     813 |         [ESR_ELx_EC_ILL]                = "PSTATE.IL",
         |                                           ^~~~~~~~~~~
   arch/arm64/kernel/traps.c:813:43: note: (near initialization for 'esr_class_str[14]')
   arch/arm64/kernel/traps.c:814:43: warning: initialized field overwritten [-Woverride-init]
     814 |         [ESR_ELx_EC_SVC32]              = "SVC (AArch32)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:814:43: note: (near initialization for 'esr_class_str[17]')
   arch/arm64/kernel/traps.c:815:43: warning: initialized field overwritten [-Woverride-init]
     815 |         [ESR_ELx_EC_HVC32]              = "HVC (AArch32)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:815:43: note: (near initialization for 'esr_class_str[18]')
   arch/arm64/kernel/traps.c:816:43: warning: initialized field overwritten [-Woverride-init]
     816 |         [ESR_ELx_EC_SMC32]              = "SMC (AArch32)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:816:43: note: (near initialization for 'esr_class_str[19]')
   arch/arm64/kernel/traps.c:817:43: warning: initialized field overwritten [-Woverride-init]
     817 |         [ESR_ELx_EC_SVC64]              = "SVC (AArch64)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:817:43: note: (near initialization for 'esr_class_str[21]')
   arch/arm64/kernel/traps.c:818:43: warning: initialized field overwritten [-Woverride-init]
     818 |         [ESR_ELx_EC_HVC64]              = "HVC (AArch64)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:818:43: note: (near initialization for 'esr_class_str[22]')
   arch/arm64/kernel/traps.c:819:43: warning: initialized field overwritten [-Woverride-init]
     819 |         [ESR_ELx_EC_SMC64]              = "SMC (AArch64)",
         |                                           ^~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:819:43: note: (near initialization for 'esr_class_str[23]')
   arch/arm64/kernel/traps.c:820:43: warning: initialized field overwritten [-Woverride-init]
     820 |         [ESR_ELx_EC_SYS64]              = "MSR/MRS (AArch64)",
         |                                           ^~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:820:43: note: (near initialization for 'esr_class_str[24]')
   arch/arm64/kernel/traps.c:821:43: warning: initialized field overwritten [-Woverride-init]
     821 |         [ESR_ELx_EC_SVE]                = "SVE",
         |                                           ^~~~~
   arch/arm64/kernel/traps.c:821:43: note: (near initialization for 'esr_class_str[25]')
   arch/arm64/kernel/traps.c:822:43: warning: initialized field overwritten [-Woverride-init]
     822 |         [ESR_ELx_EC_ERET]               = "ERET/ERETAA/ERETAB",
         |                                           ^~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:822:43: note: (near initialization for 'esr_class_str[26]')
   arch/arm64/kernel/traps.c:823:43: warning: initialized field overwritten [-Woverride-init]
     823 |         [ESR_ELx_EC_FPAC]               = "FPAC",
         |                                           ^~~~~~
   arch/arm64/kernel/traps.c:823:43: note: (near initialization for 'esr_class_str[28]')
   arch/arm64/kernel/traps.c:824:43: warning: initialized field overwritten [-Woverride-init]
     824 |         [ESR_ELx_EC_IMP_DEF]            = "EL3 IMP DEF",
         |                                           ^~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:824:43: note: (near initialization for 'esr_class_str[31]')
   arch/arm64/kernel/traps.c:825:43: warning: initialized field overwritten [-Woverride-init]
     825 |         [ESR_ELx_EC_IABT_LOW]           = "IABT (lower EL)",
         |                                           ^~~~~~~~~~~~~~~~~
   arch/arm64/kernel/traps.c:825:43: note: (near initialization for 'esr_class_str[32]')
   arch/arm64/kernel/traps.c:826:43: warning: initialized field overwritten [-Woverride-init]
     826 |         [ESR_ELx_EC_IABT_CUR]           = "IABT (current EL)",


vim +/hark_foo +443 arch/arm64/kernel/traps.c

   442	
 > 443	int hark_foo(int __user *thing)
   444	{
   445		int val;
   446	
   447		if (!get_user(val, thing))
   448			return val;
   449	
   450		return 0xf00fd00d;
   451	}
   452	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (43668 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ