public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nikita Shubin <nikita.shubin@maquefel.me>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Alexander Sverdlin <alexander.sverdlin@gmail.com>
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	[thread overview]
Message-ID: <202202140141.HRZ3WZwi-lkp@intel.com> (raw)

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/archive/20220214/202202140141.HRZ3WZwi-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
reproduce (this is a W=1 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.git/commit/?id=9645ccc7bd7a16cd73c3be9dee70cd702b03be37
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/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=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/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 <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/arm/mach-ep93xx/ts72xx.c:154:13: error: no previous prototype for function '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 function 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 prototype 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' set 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_register_flash(struct mtd_partition *parts, int n,
d6d76745f4d921 Lukasz Majewski   2017-12-12  155  				  resource_size_t start)
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 = start;
030d2dd450a628 H Hartley Sweeten 2010-01-05  164  		ts72xx_nand_resource[0].end = start + SZ_16M - 1;
030d2dd450a628 H Hartley Sweeten 2010-01-05  165  
d6d76745f4d921 Lukasz Majewski   2017-12-12  166  		ts72xx_nand_data.chip.partitions = parts;
d6d76745f4d921 Lukasz Majewski   2017-12-12  167  		ts72xx_nand_data.chip.nr_partitions = n;
d6d76745f4d921 Lukasz Majewski   2017-12-12  168  
030d2dd450a628 H Hartley Sweeten 2010-01-05  169  		platform_device_register(&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: Rewrite ts72xx_register_flash() to accept parameters

:::::: TO: Lukasz Majewski <lukma@denx.de>
:::::: CC: Alexander Sverdlin <alexander.sverdlin@gmail.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-02-13 17:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202140141.HRZ3WZwi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.sverdlin@gmail.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=nikita.shubin@maquefel.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox