Content-Type: multipart/mixed; boundary="===============1932081515915873194==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: arch/arm/mach-ep93xx/ts72xx.c:154:13: error: no previous prototype for function 'ts72xx_register_flash' Date: Mon, 14 Feb 2022 01:47:46 +0800 Message-ID: <202202140141.HRZ3WZwi-lkp@intel.com> List-Id: --===============1932081515915873194== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: b81b1829e7e39f6cebdf6e4d5484eacbceda8554 commit: 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 ep93xx: clock: convert in-= place to COMMON_CLK date: 4 months ago config: arm-randconfig-r004-20220213 (https://download.01.org/0day-ci/archi= ve/20220214/202202140141.HRZ3WZwi-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea0718= 84b0cc7210b3cc5fe858f0e892a779a23b) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3D9645ccc7bd7a16cd73c3be9dee70cd702b03be37 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout 9645ccc7bd7a16cd73c3be9dee70cd702b03be37 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash arch/arm/mach-ep93xx/ drivers/= hsi/controllers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/arm/mach-ep93xx/ts72xx.c:154:13: error: no previous prototype for f= unction 'ts72xx_register_flash' [-Werror,-Wmissing-prototypes] void __init ts72xx_register_flash(struct mtd_partition *parts, int n, ^ arch/arm/mach-ep93xx/ts72xx.c:154:1: note: declare 'static' if the funct= ion is not intended to be used outside of this translation unit void __init ts72xx_register_flash(struct mtd_partition *parts, int n, ^ static = 1 error generated. -- >> drivers/hsi/controllers/omap_ssi_core.c:147:6: error: no previous protot= ype for function 'ssi_waketest' [-Werror,-Wmissing-prototypes] void ssi_waketest(struct hsi_client *cl, unsigned int enable) ^ drivers/hsi/controllers/omap_ssi_core.c:147:1: note: declare 'static' if= the function is not intended to be used outside of this translation unit void ssi_waketest(struct hsi_client *cl, unsigned int enable) ^ static = 1 error generated. -- >> drivers/hsi/controllers/omap_ssi_port.c:463:6: error: variable 'val' set= but not used [-Werror,-Wunused-but-set-variable] u32 val; ^ >> drivers/hsi/controllers/omap_ssi_port.c:1325:6: error: variable 'mode' s= et but not used [-Werror,-Wunused-but-set-variable] u32 mode; ^ 2 errors generated. vim +/ts72xx_register_flash +154 arch/arm/mach-ep93xx/ts72xx.c 030d2dd450a628 H Hartley Sweeten 2010-01-05 153 = d6d76745f4d921 Lukasz Majewski 2017-12-12 @154 void __init ts72xx_regist= er_flash(struct mtd_partition *parts, int n, d6d76745f4d921 Lukasz Majewski 2017-12-12 155 resource_size_t sta= rt) 3174c88af4b6b2 Hartley Sweeten 2009-07-20 156 { 16bcf78f8cac9c Hartley Sweeten 2010-06-10 157 /* 16bcf78f8cac9c Hartley Sweeten 2010-06-10 158 * TS7200 has NOR flash = all other TS72xx board have NAND flash. 16bcf78f8cac9c Hartley Sweeten 2010-06-10 159 */ 030d2dd450a628 H Hartley Sweeten 2010-01-05 160 if (board_is_ts7200()) { 16bcf78f8cac9c Hartley Sweeten 2010-06-10 161 ep93xx_register_flash(2= , EP93XX_CS6_PHYS_BASE, SZ_16M); 030d2dd450a628 H Hartley Sweeten 2010-01-05 162 } else { 030d2dd450a628 H Hartley Sweeten 2010-01-05 163 ts72xx_nand_resource[0]= .start =3D start; 030d2dd450a628 H Hartley Sweeten 2010-01-05 164 ts72xx_nand_resource[0]= .end =3D start + SZ_16M - 1; 030d2dd450a628 H Hartley Sweeten 2010-01-05 165 = d6d76745f4d921 Lukasz Majewski 2017-12-12 166 ts72xx_nand_data.chip.p= artitions =3D parts; d6d76745f4d921 Lukasz Majewski 2017-12-12 167 ts72xx_nand_data.chip.n= r_partitions =3D n; d6d76745f4d921 Lukasz Majewski 2017-12-12 168 = 030d2dd450a628 H Hartley Sweeten 2010-01-05 169 platform_device_registe= r(&ts72xx_nand_flash); 030d2dd450a628 H Hartley Sweeten 2010-01-05 170 } 3174c88af4b6b2 Hartley Sweeten 2009-07-20 171 } 3174c88af4b6b2 Hartley Sweeten 2009-07-20 172 = :::::: The code at line 154 was first introduced by commit :::::: d6d76745f4d921ba8c58d72259b9383ee5b67b28 ARM: ep93xx: ts72xx: Rewrit= e ts72xx_register_flash() to accept parameters :::::: TO: Lukasz Majewski :::::: CC: Alexander Sverdlin --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1932081515915873194==--