tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: dbd91ef4e91c1ce3a24429f5fb3876b7a0306733 commit: c16caa9110dd042a538e9443451d9491bafc6056 [3171/3527] init: consolidate prototypes in linux/init.h config: sparc64-randconfig-s032-20230521 compiler: sparc64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c16caa9110dd042a538e9443451d9491bafc6056 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout c16caa9110dd042a538e9443451d9491bafc6056 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash arch/sparc/kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305210519.Qf3BiDwa-lkp@intel.com/ Note: the linux-next/master HEAD dbd91ef4e91c1ce3a24429f5fb3876b7a0306733 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): arch/sparc/kernel/setup_64.c: In function 'start_early_boot': >> arch/sparc/kernel/setup_64.c:382:9: error: implicit declaration of function 'time_init_early'; did you mean 'inode_init_early'? [-Werror=implicit-function-declaration] 382 | time_init_early(); | ^~~~~~~~~~~~~~~ | inode_init_early arch/sparc/kernel/setup_64.c: At top level: arch/sparc/kernel/setup_64.c:615:13: error: no previous prototype for 'alloc_irqstack_bootmem' [-Werror=missing-prototypes] 615 | void __init alloc_irqstack_bootmem(void) | ^~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- >> arch/sparc/kernel/time_64.c:834:13: error: no previous prototype for 'time_init_early' [-Werror=missing-prototypes] 834 | void __init time_init_early(void) | ^~~~~~~~~~~~~~~ arch/sparc/kernel/time_64.c:880:20: error: no previous prototype for 'sched_clock' [-Werror=missing-prototypes] 880 | unsigned long long sched_clock(void) | ^~~~~~~~~~~ cc1: all warnings being treated as errors vim +382 arch/sparc/kernel/setup_64.c e9b9eb59ffcdee arch/sparc/kernel/setup_64.c David S. Miller 2012-10-27 364 ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 365 void __init start_early_boot(void) 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 366 { ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 367 int cpu; ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 368 ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 369 check_if_starfire(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 370 per_cpu_patch(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 371 sun4v_patch(); 8536e02e912a46 arch/sparc/kernel/setup_64.c Vijay Kumar 2017-07-21 372 smp_init_cpu_poke(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 373 ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 374 cpu = hard_smp_processor_id(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 375 if (cpu >= NR_CPUS) { 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 376 prom_printf("Serious problem, boot cpu id (%d) >= NR_CPUS (%d)\n", 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 377 cpu, NR_CPUS); 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 378 prom_halt(); 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 379 } ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 380 current_thread_info()->cpu = cpu; ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 381 83e8eb99d908da arch/sparc/kernel/setup_64.c Pavel Tatashin 2017-06-12 @382 time_init_early(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 383 prom_init_report(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 384 start_kernel(); ef3e035c3a9b81 arch/sparc/kernel/setup_64.c David S. Miller 2014-10-23 385 } 951bc82c53f30e arch/sparc64/kernel/setup.c David S. Miller 2006-05-31 386 :::::: The code at line 382 was first introduced by commit :::::: 83e8eb99d908da78e6eff7dd141f26626fe01d12 sparc64: initialize time early :::::: TO: Pavel Tatashin :::::: CC: David S. Miller -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki