tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d31958b30ea3b7b6e522d6bf449427748ad45822
commit: 526fbaed33e8eac89634a676e5f8e3b41dfae66e [6663/7247] riscv: Register System RAM as
iomem resources
config: riscv-randconfig-r005-20200710 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 526fbaed33e8eac89634a676e5f8e3b41dfae66e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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/riscv/mm/init.c:520:13: warning: no previous prototype for
function 'resource_init' [-Wmissing-prototypes]
void __init
resource_init(void)
^
arch/riscv/mm/init.c:520:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void __init resource_init(void)
^
static
1 warning generated.
vim +/resource_init +520 arch/riscv/mm/init.c
519
520 void __init resource_init(void)
521 {
522 struct memblock_region *region;
523
524 for_each_memblock(memory, region) {
525 struct resource *res;
526
527 res = memblock_alloc(sizeof(struct resource), SMP_CACHE_BYTES);
528 if (!res)
529 panic("%s: Failed to allocate %zu bytes\n", __func__,
530 sizeof(struct resource));
531
532 if (memblock_is_nomap(region)) {
533 res->name = "reserved";
534 res->flags = IORESOURCE_MEM;
535 } else {
536 res->name = "System RAM";
537 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
538 }
539 res->start = __pfn_to_phys(memblock_region_memory_base_pfn(region));
540 res->end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1;
541
542 request_resource(&iomem_resource, res);
543 }
544 }
545
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org