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: <202204191030.DC8873Hc-lkp@intel.com>
Date:   Tue, 19 Apr 2022 10:34:19 +0800
From:   kernel test robot <lkp@...el.com>
To:     Linu Cherian <lcherian@...vell.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Will Deacon <will@...nel.org>, Marc Zyngier <maz@...nel.org>
Subject: arch/arm64/kernel/cpu_errata.c:218:25: sparse: sparse: symbol
 'cavium_erratum_23154_cpus' was not declared. Should it be static?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b2d229d4ddb17db541098b83524d901257e93845
commit: 24a147bcef8ca039cb75d6d4b68c7cc339b11178 irqchip/gic-v3: Workaround Marvell erratum 38545 when reading IAR
date:   6 weeks ago
config: arm64-randconfig-s031-20220419 (https://download.01.org/0day-ci/archive/20220419/202204191030.DC8873Hc-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=24a147bcef8ca039cb75d6d4b68c7cc339b11178
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 24a147bcef8ca039cb75d6d4b68c7cc339b11178
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kernel/cpu_errata.c:218:25: sparse: sparse: symbol 'cavium_erratum_23154_cpus' was not declared. Should it be static?
   arch/arm64/kernel/cpu_errata.c:314:18: sparse: sparse: Initializer entry defined twice
   arch/arm64/kernel/cpu_errata.c:315:17: sparse:   also defined here
   arch/arm64/kernel/cpu_errata.c:320:18: sparse: sparse: Initializer entry defined twice
   arch/arm64/kernel/cpu_errata.c:321:17: sparse:   also defined here
   arch/arm64/kernel/cpu_errata.c:444:18: sparse: sparse: Initializer entry defined twice
   arch/arm64/kernel/cpu_errata.c:445:17: sparse:   also defined here
   arch/arm64/kernel/cpu_errata.c:552:17: sparse: sparse: Initializer entry defined twice
   arch/arm64/kernel/cpu_errata.c:553:18: sparse:   also defined here
   arch/arm64/kernel/cpu_errata.c:621:18: sparse: sparse: Initializer entry defined twice
   arch/arm64/kernel/cpu_errata.c:622:17: sparse:   also defined here

vim +/cavium_erratum_23154_cpus +218 arch/arm64/kernel/cpu_errata.c

   216	
   217	#ifdef CONFIG_CAVIUM_ERRATUM_23154
 > 218	const struct midr_range cavium_erratum_23154_cpus[] = {
   219		MIDR_ALL_VERSIONS(MIDR_THUNDERX),
   220		MIDR_ALL_VERSIONS(MIDR_THUNDERX_81XX),
   221		MIDR_ALL_VERSIONS(MIDR_THUNDERX_83XX),
   222		MIDR_ALL_VERSIONS(MIDR_OCTX2_98XX),
   223		MIDR_ALL_VERSIONS(MIDR_OCTX2_96XX),
   224		MIDR_ALL_VERSIONS(MIDR_OCTX2_95XX),
   225		MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXN),
   226		MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXMM),
   227		MIDR_ALL_VERSIONS(MIDR_OCTX2_95XXO),
   228		{},
   229	};
   230	#endif
   231	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ