[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207131331.Me2o8nNL-lkp@intel.com>
Date: Wed, 13 Jul 2022 13:23:11 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: arch/arm/mach-spear/spear6xx.c:365:13: warning: no previous
prototype for function 'spear6xx_map_io'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b047602d579b4fb028128a525f056bbdc890e7f0
commit: 7036440eab3e2d47a775d4616909f8235488d714 ARM: omap1: enable multiplatform
date: 6 weeks ago
config: arm-randconfig-r032-20220713 (https://download.01.org/0day-ci/archive/20220713/202207131331.Me2o8nNL-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e60b4fb2b777118c0ff664a6347851df14fcf75b)
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=7036440eab3e2d47a775d4616909f8235488d714
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7036440eab3e2d47a775d4616909f8235488d714
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-spear/ drivers/clk/spear/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> arch/arm/mach-spear/spear6xx.c:365:13: warning: no previous prototype for function 'spear6xx_map_io' [-Wmissing-prototypes]
void __init spear6xx_map_io(void)
^
arch/arm/mach-spear/spear6xx.c:365:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init spear6xx_map_io(void)
^
static
>> arch/arm/mach-spear/spear6xx.c:370:13: warning: no previous prototype for function 'spear6xx_timer_init' [-Wmissing-prototypes]
void __init spear6xx_timer_init(void)
^
arch/arm/mach-spear/spear6xx.c:370:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init spear6xx_timer_init(void)
^
static
2 warnings generated.
--
>> drivers/clk/spear/spear6xx_clock.c:116:13: warning: no previous prototype for function 'spear6xx_clk_init' [-Wmissing-prototypes]
void __init spear6xx_clk_init(void __iomem *misc_base)
^
drivers/clk/spear/spear6xx_clock.c:116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init spear6xx_clk_init(void __iomem *misc_base)
^
static
1 warning generated.
vim +/spear6xx_map_io +365 arch/arm/mach-spear/spear6xx.c
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 363
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 364 /* This will create static memory mapping for selected devices */
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 @365 void __init spear6xx_map_io(void)
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 366 {
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 367 iotable_init(spear6xx_io_desc, ARRAY_SIZE(spear6xx_io_desc));
8f590d4541fb67 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2010-04-01 368 }
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 369
6bb27d7349db51 arch/arm/mach-spear6xx/spear6xx.c Stephen Warren 2012-11-08 @370 void __init spear6xx_timer_init(void)
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 371 {
a8f4bf0eb4ca7a arch/arm/mach-spear6xx/spear6xx.c Vipul Kumar Samar 2012-07-10 372 char pclk_name[] = "pll3_clk";
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 373 struct clk *gpt_clk, *pclk;
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 374
d9909ebe650f02 arch/arm/mach-spear/spear6xx.c Arnd Bergmann 2012-12-02 375 spear6xx_clk_init(MISC_BASE);
5df33a62c4a028 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2012-04-10 376
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 377 /* get the system timer clock */
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 378 gpt_clk = clk_get_sys("gpt0", NULL);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 379 if (IS_ERR(gpt_clk)) {
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 380 pr_err("%s:couldn't get clk for gpt\n", __func__);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 381 BUG();
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 382 }
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 383
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 384 /* get the suitable parent clock for timer*/
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 385 pclk = clk_get(NULL, pclk_name);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 386 if (IS_ERR(pclk)) {
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 387 pr_err("%s:couldn't get %s as parent for gpt\n",
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 388 __func__, pclk_name);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 389 BUG();
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 390 }
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 391
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 392 clk_set_parent(gpt_clk, pclk);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 393 clk_put(gpt_clk);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 394 clk_put(pclk);
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 395
30551c0108e0d2 arch/arm/mach-spear6xx/spear6xx.c Viresh Kumar 2012-04-21 396 spear_setup_of_timer();
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 397 }
5c881d9ae94801 arch/arm/mach-spear6xx/spear6xx.c Shiraz Hashim 2011-02-16 398
:::::: The code at line 365 was first introduced by commit
:::::: 8f590d4541fb678a638777ab987709217cb71365 ARM: 6015/1: ST SPEAr: Added source files for SPEAr6xx machine family
:::::: TO: viresh kumar <viresh.kumar@...com>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists