[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203081921.SpUkNaaj-lkp@intel.com>
Date: Tue, 8 Mar 2022 19:12:29 +0800
From: kernel test robot <lkp@...el.com>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org, Michael Ellerman <mpe@...erman.id.au>
Subject: [ammarfaizi2-block:powerpc/linux/next-test 142/143]
arch/powerpc/kernel/prom_init.c:3302:22: error: no previous prototype for
'prom_init'
tree: https://github.com/ammarfaizi2/linux-block powerpc/linux/next-test
head: 0a448e06d10e149bf5ed23202d49246b6c4cf77b
commit: 21dad3fa76176d992e8ddf3f49ad0866a5424da5 [142/143] powerpc: Move C prototypes out of asm-prototypes.h
config: powerpc64-randconfig-s031-20220307 (https://download.01.org/0day-ci/archive/20220308/202203081921.SpUkNaaj-lkp@intel.com/config)
compiler: powerpc64-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://github.com/ammarfaizi2/linux-block/commit/21dad3fa76176d992e8ddf3f49ad0866a5424da5
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block powerpc/linux/next-test
git checkout 21dad3fa76176d992e8ddf3f49ad0866a5424da5
# 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=powerpc SHELL=/bin/bash arch/powerpc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/prom_init.c:3302:22: error: no previous prototype for 'prom_init' [-Werror=missing-prototypes]
3302 | unsigned long __init prom_init(unsigned long r3, unsigned long r4,
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/prom_init +3302 arch/powerpc/kernel/prom_init.c
6a9c930bd7751b Ram Pai 2019-08-19 3296
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3297 /*
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3298 * We enter here early on, when the Open Firmware prom is still
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3299 * handling exceptions and the MMU hash table for us.
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3300 */
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3301
9b6b563c0d2d25 Paul Mackerras 2005-10-06 @3302 unsigned long __init prom_init(unsigned long r3, unsigned long r4,
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3303 unsigned long pp,
549e8152de8039 Paul Mackerras 2008-08-30 3304 unsigned long r6, unsigned long r7,
549e8152de8039 Paul Mackerras 2008-08-30 3305 unsigned long kbase)
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3306 {
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3307 unsigned long hdr;
9b6b563c0d2d25 Paul Mackerras 2005-10-06 3308
:::::: The code at line 3302 was first introduced by commit
:::::: 9b6b563c0d2d25ecc3111916031aa7255543fbfb powerpc: Merge in the ppc64 version of the prom code.
:::::: TO: Paul Mackerras <paulus@...ba.org>
:::::: CC: Paul Mackerras <paulus@...ba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists