lkml.org 
[lkml]   [2022]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectarch/arm/mach-imx/cpu-imx25.c:40:5: warning: no previous prototype for 'mx25_revision'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4c612826bec1441214816827979b62f84a097e91
commit: a3102fafdce6f150e5a46e1725bb1732f8953a01 ARM: iop32x: enable multiplatform support
date: 5 months ago
config: arm-randconfig-r032-20220826 (https://download.01.org/0day-ci/archive/20220826/202208261020.uj1YdaoI-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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=a3102fafdce6f150e5a46e1725bb1732f8953a01
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a3102fafdce6f150e5a46e1725bb1732f8953a01
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-imx/ arch/arm/mach-versatile/ drivers/clk/spear/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

In file included from include/linux/gfp.h:6,
from include/linux/umh.h:4,
from include/linux/kmod.h:9,
from include/linux/module.h:17,
from arch/arm/mach-imx/cpu-imx25.c:8:
include/linux/mmzone.h: In function '__nr_to_section':
include/linux/mmzone.h:1404:13: warning: the comparison will always evaluate as 'true' for the address of 'mem_section' will never be NULL [-Waddress]
1404 | if (!mem_section[SECTION_NR_TO_ROOT(nr)])
| ^
include/linux/mmzone.h:1390:27: note: 'mem_section' declared here
1390 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
| ^~~~~~~~~~~
arch/arm/mach-imx/cpu-imx25.c: At top level:
>> arch/arm/mach-imx/cpu-imx25.c:40:5: warning: no previous prototype for 'mx25_revision' [-Wmissing-prototypes]
40 | int mx25_revision(void)
| ^~~~~~~~~~~~~
--
In file included from include/linux/swap.h:7,
from include/linux/suspend.h:5,
from arch/arm/mach-imx/pm-imx25.c:7:
include/linux/mmzone.h: In function '__nr_to_section':
include/linux/mmzone.h:1404:13: warning: the comparison will always evaluate as 'true' for the address of 'mem_section' will never be NULL [-Waddress]
1404 | if (!mem_section[SECTION_NR_TO_ROOT(nr)])
| ^
include/linux/mmzone.h:1390:27: note: 'mem_section' declared here
1390 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
| ^~~~~~~~~~~
arch/arm/mach-imx/pm-imx25.c: At top level:
>> arch/arm/mach-imx/pm-imx25.c:31:13: warning: no previous prototype for 'imx25_pm_init' [-Wmissing-prototypes]
31 | void __init imx25_pm_init(void)
| ^~~~~~~~~~~~~
--
In file included from include/linux/gfp.h:6,
from include/linux/radix-tree.h:12,
from include/linux/idr.h:15,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from arch/arm/mach-versatile/versatile.c:13:
include/linux/mmzone.h: In function '__nr_to_section':
include/linux/mmzone.h:1404:13: warning: the comparison will always evaluate as 'true' for the address of 'mem_section' will never be NULL [-Waddress]
1404 | if (!mem_section[SECTION_NR_TO_ROOT(nr)])
| ^
include/linux/mmzone.h:1390:27: note: 'mem_section' declared here
1390 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
| ^~~~~~~~~~~
arch/arm/mach-versatile/versatile.c: At top level:
>> arch/arm/mach-versatile/versatile.c:56:14: warning: no previous prototype for 'mmc_status' [-Wmissing-prototypes]
56 | unsigned int mmc_status(struct device *dev)
| ^~~~~~~~~~
--
In file included from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from include/linux/clkdev.h:12,
from drivers/clk/spear/spear3xx_clock.c:13:
include/linux/mmzone.h: In function '__nr_to_section':
include/linux/mmzone.h:1404:13: warning: the comparison will always evaluate as 'true' for the address of 'mem_section' will never be NULL [-Waddress]
1404 | if (!mem_section[SECTION_NR_TO_ROOT(nr)])
| ^
include/linux/mmzone.h:1390:27: note: 'mem_section' declared here
1390 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
| ^~~~~~~~~~~
drivers/clk/spear/spear3xx_clock.c: At top level:
>> drivers/clk/spear/spear3xx_clock.c:390:13: warning: no previous prototype for 'spear3xx_clk_init' [-Wmissing-prototypes]
390 | void __init spear3xx_clk_init(void __iomem *misc_base, void __iomem *soc_config_base)
| ^~~~~~~~~~~~~~~~~


vim +/mx25_revision +40 arch/arm/mach-imx/cpu-imx25.c

d27536c6619221 Jason Liu 2011-08-26 39
d27536c6619221 Jason Liu 2011-08-26 @40 int mx25_revision(void)

:::::: The code at line 40 was first introduced by commit
:::::: d27536c6619221528114746317def345467a3e80 ARM: mx25: Print silicon revision on boot

:::::: TO: Jason Liu <jason.hui@linaro.org>
:::::: CC: Sascha Hauer <s.hauer@pengutronix.de>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-08-26 04:27    [W:0.467 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site