Re: [PATCH] mm: free reserved area's memmap if possiable

From: kbuild test robot
Date: Mon Feb 13 2017 - 09:55:30 EST


Hi zhouxianrong,

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on v4.10-rc8 next-20170213]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/zhouxianrong-huawei-com/mm-free-reserved-area-s-memmap-if-possiable/20170213-203618
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All errors (new ones prefixed by >>):

>> drivers/of/of_reserved_mem.c:34:19: error: conflicting types for 'early_init_dt_alloc_reserved_memory_arch'
int __init __weak early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
^
In file included from drivers/of/of_reserved_mem.c:24:0:
include/linux/of_reserved_mem.h:37:5: note: previous declaration of 'early_init_dt_alloc_reserved_memory_arch' was here
int early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
^

vim +/early_init_dt_alloc_reserved_memory_arch +34 drivers/of/of_reserved_mem.c

3f0c8206 Marek Szyprowski 2014-02-28 28 #define MAX_RESERVED_REGIONS 16
3f0c8206 Marek Szyprowski 2014-02-28 29 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS];
3f0c8206 Marek Szyprowski 2014-02-28 30 static int reserved_mem_count;
3f0c8206 Marek Szyprowski 2014-02-28 31
3f0c8206 Marek Szyprowski 2014-02-28 32 #if defined(CONFIG_HAVE_MEMBLOCK)
3f0c8206 Marek Szyprowski 2014-02-28 33 #include <linux/memblock.h>
3f0c8206 Marek Szyprowski 2014-02-28 @34 int __init __weak early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
3f0c8206 Marek Szyprowski 2014-02-28 35 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap,
6094ef24 zhouxianrong 2017-02-13 36 bool raw_pfn, phys_addr_t *res_base)
3f0c8206 Marek Szyprowski 2014-02-28 37 {

:::::: The code at line 34 was first introduced by commit
:::::: 3f0c8206644836e4f10a6b9fc47cda6a9a372f9b drivers: of: add initialization code for dynamic reserved memory

:::::: TO: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
:::::: CC: Grant Likely <grant.likely@xxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip