tree:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
kernel-in-vmalloc-v5.12-rc1
head: 7b99ca2d1494c9431f36164db472b70852ad9bf6
commit: 678cdec93763be3599aab4ded32b5d719f2e1942 [2/6] ARM: Print virtual memory info
again
config: arm-randconfig-r013-20210413 (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/linusw/linux-integrator.g...
git remote add arm-integrator
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.12-rc1
git checkout 678cdec93763be3599aab4ded32b5d719f2e1942
# 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 <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/init.c:97:13: warning: no previous prototype for 'setup_dma_zone'
[-Wmissing-prototypes]
97 | void __init setup_dma_zone(const struct machine_desc *mdesc)
| ^~~~~~~~~~~~~~
> arch/arm/mm/init.c:296:13: warning: no previous prototype for
'mem_init_print_arm_info' [-Wmissing-prototypes]
296 | void __init
mem_init_print_arm_info(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from arch/arm/mm/init.c:7:
arch/arm/mm/init.c: In function 'mem_init_print_arm_info':
> include/linux/kern_levels.h:5:18: warning: format '%lx'
expects argument of type 'long unsigned int', but argument 2 has type 'char
*' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of
Header */
| ^~~~~~
include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
13 | #define KERN_NOTICE KERN_SOH "5" /* normal but significant condition
*/
| ^~~~~~~~
include/linux/printk.h:363:9: note: in expansion of macro 'KERN_NOTICE'
363 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
arch/arm/mm/init.c:299:2: note: in expansion of macro 'pr_notice'
299 | pr_notice("Virtual kernel memory layout:\n"
| ^~~~~~~~~
arch/arm/mm/init.c:300:26: note: format string is defined here
300 | " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
| ~~~~^
| |
| long unsigned int
| %08s
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from arch/arm/mm/init.c:7:
> include/linux/kern_levels.h:5:18: warning: too many arguments for
format [-Wformat-extra-args]
5 | #define KERN_SOH "\001" /* ASCII
Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
13 | #define KERN_NOTICE KERN_SOH "5" /* normal but significant condition
*/
| ^~~~~~~~
include/linux/printk.h:363:9: note: in expansion of macro 'KERN_NOTICE'
363 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
arch/arm/mm/init.c:299:2: note: in expansion of macro 'pr_notice'
299 | pr_notice("Virtual kernel memory layout:\n"
| ^~~~~~~~~
In file included from arch/arm/mm/init.c:36:
At top level:
arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses'
defined but not used [-Wunused-const-variable=]
39 | static const enum fixed_addresses __end_of_fixed_addresses =
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/mem_init_print_arm_info +296 arch/arm/mm/init.c
295
296 void __init mem_init_print_arm_info(void)
297 {
298 #define MLM(b, t) b, t, ((t) - (b)) >> 20
299 pr_notice("Virtual kernel memory layout:\n"
300 " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
301 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n"
302 " lowmem : 0x%08lx - 0x%08lx (%4ld MB)\n"
303 #ifdef CONFIG_MODULES
304 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n",
305 #endif
306 " kernel : 0x%08lx - 0x%08lx (%4ld MB)\n",
307 MLM(FIXADDR_START, FIXADDR_END),
308 MLM(VMALLOC_START, VMALLOC_END),
309 MLM(PAGE_OFFSET, (unsigned long)high_memory),
310 #ifdef CONFIG_MODULES
311 MLM(MODULES_VADDR, MODULES_END),
312 #endif
313 /* From beginning of .text to end of .bss */
314 MLM((unsigned long)_text, (unsigned long)__bss_stop));
315 #undef MLM
316 }
317
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org