2021-02-26 13:13:19

by kernel test robot

[permalink] [raw]
Subject: arch/arm/mach-omap2/board-generic.c:36:28: warning: no previous prototype for 'omap_init_time_of'

Hi Tony,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b
commit: e69b4e1a7577c169e9f52edf977401734a6a29eb ARM: OMAP2+: Add omap_init_time_of()
date: 9 months ago
config: arm-randconfig-r012-20210226 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e69b4e1a7577c169e9f52edf977401734a6a29eb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e69b4e1a7577c169e9f52edf977401734a6a29eb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> arch/arm/mach-omap2/board-generic.c:36:28: warning: no previous prototype for 'omap_init_time_of' [-Wmissing-prototypes]
36 | void __init __maybe_unused omap_init_time_of(void)
| ^~~~~~~~~~~~~~~~~


vim +/omap_init_time_of +36 arch/arm/mach-omap2/board-generic.c

34
35 /* Clocks are needed early, see drivers/clocksource for the rest */
> 36 void __init __maybe_unused omap_init_time_of(void)
37 {
38 omap_clk_init();
39 timer_probe();
40 }
41

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (1.82 kB)
.config.gz (34.01 kB)
Download all attachments

2021-03-25 02:53:45

by Tony Lindgren

[permalink] [raw]
Subject: Re: arch/arm/mach-omap2/board-generic.c:36:28: warning: no previous prototype for 'omap_init_time_of'

Hi,

* kernel test robot <[email protected]> [210226 13:11]:
> Hi Tony,
>
> FYI, the error/warning still remains.

Thanks for the report and sorry for the delay in responding. I've posted
a fix for this at:

https://lore.kernel.org/linux-omap/[email protected]/T/#u

Regards,

Tony


> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b
> commit: e69b4e1a7577c169e9f52edf977401734a6a29eb ARM: OMAP2+: Add omap_init_time_of()
> date: 9 months ago
> config: arm-randconfig-r012-20210226 (attached as .config)
> compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
> 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
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e69b4e1a7577c169e9f52edf977401734a6a29eb
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout e69b4e1a7577c169e9f52edf977401734a6a29eb
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <[email protected]>
>
> All warnings (new ones prefixed by >>):
>
> >> arch/arm/mach-omap2/board-generic.c:36:28: warning: no previous prototype for 'omap_init_time_of' [-Wmissing-prototypes]
> 36 | void __init __maybe_unused omap_init_time_of(void)
> | ^~~~~~~~~~~~~~~~~
>
>
> vim +/omap_init_time_of +36 arch/arm/mach-omap2/board-generic.c
>
> 34
> 35 /* Clocks are needed early, see drivers/clocksource for the rest */
> > 36 void __init __maybe_unused omap_init_time_of(void)
> 37 {
> 38 omap_clk_init();
> 39 timer_probe();
> 40 }
> 41
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/[email protected]