Re: [PATCH 02/21] MIPS memblock: Add dts mem and reserved-mem callbacks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Serge,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9 next-20161216]
[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/Serge-Semin/MIPS-memblock-Remove-bootmem-code-and-switch-to-NO_BOOTMEM/20161219-105045
config: mips-rt305x_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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=mips 

All errors (new ones prefixed by >>):

   arch/mips/kernel/prom.c: In function 'early_init_dt_add_memory_arch':
>> arch/mips/kernel/prom.c:46:29: error: passing argument 1 of 'sanity_check_dt_memory' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (sanity_check_dt_memory(&base, &size))
                                ^
   In file included from arch/mips/kernel/prom.c:18:0:
   include/linux/of_fdt.h:93:12: note: expected 'phys_addr_t * {aka unsigned int *}' but argument is of type 'u64 * {aka long long unsigned int *}'
    extern int sanity_check_dt_memory(phys_addr_t *base, phys_addr_t *size);
               ^~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/prom.c:46:36: error: passing argument 2 of 'sanity_check_dt_memory' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (sanity_check_dt_memory(&base, &size))
                                       ^
   In file included from arch/mips/kernel/prom.c:18:0:
   include/linux/of_fdt.h:93:12: note: expected 'phys_addr_t * {aka unsigned int *}' but argument is of type 'u64 * {aka long long unsigned int *}'
    extern int sanity_check_dt_memory(phys_addr_t *base, phys_addr_t *size);
               ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/sanity_check_dt_memory +46 arch/mips/kernel/prom.c

    40	}
    41	
    42	#ifdef CONFIG_USE_OF
    43	void __init early_init_dt_add_memory_arch(u64 base, u64 size)
    44	{
    45		/* Check whether specified region is well formed */
  > 46		if (sanity_check_dt_memory(&base, &size))
    47			return;
    48	
    49		/* Memory region should be in boot_mem_map, so use the old method */

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux