mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* arch/arm64/kernel/cpu_errata.c:218:25: sparse: sparse: symbol 'cavium_erratum_23154_cpus' was not declared. Should it be static?
@ 2022-04-19  2:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-19  2:34 UTC (permalink / raw)
  To: Linu Cherian; +Cc: kbuild-all, linux-kernel, Will Deacon, Marc Zyngier

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-19  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19  2:34 arch/arm64/kernel/cpu_errata.c:218:25: sparse: sparse: symbol 'cavium_erratum_23154_cpus' was not declared. Should it be static? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®