Hi Serge,

[auto build test WARNING on linus/master]
[also build test WARNING 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: openrisc-or1ksim_defconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
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=openrisc 

All warnings (new ones prefixed by >>):

   drivers/of/fdt.c: In function 'sanity_check_dt_memory':
>> drivers/of/fdt.c:1125:4: warning: format '%llx' expects type 'long long 
>> unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1125:4: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1129:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1129:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1133:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1133:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1138:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1138:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1144:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1144:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1147:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1147:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1151:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1151:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1157:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1157:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c:1161:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 2 has type 'phys_addr_t'
   drivers/of/fdt.c:1161:3: warning: format '%llx' expects type 'long long 
unsigned int', but argument 3 has type 'phys_addr_t'
   drivers/of/fdt.c: In function 'early_init_dt_add_memory_arch':
   drivers/of/fdt.c:1173:2: warning: passing argument 1 of 
'sanity_check_dt_memory' from incompatible pointer type
   drivers/of/fdt.c:1117:12: note: expected 'phys_addr_t *' but argument is of 
type 'u64 *'
   drivers/of/fdt.c:1173:2: warning: passing argument 2 of 
'sanity_check_dt_memory' from incompatible pointer type
   drivers/of/fdt.c:1117:12: note: expected 'phys_addr_t *' but argument is of 
type 'u64 *'

vim +1125 drivers/of/fdt.c

  1109  #ifdef CONFIG_HAVE_MEMBLOCK
  1110  #ifndef MIN_MEMBLOCK_ADDR
  1111  #define MIN_MEMBLOCK_ADDR       __pa(PAGE_OFFSET)
  1112  #endif
  1113  #ifndef MAX_MEMBLOCK_ADDR
  1114  #define MAX_MEMBLOCK_ADDR       ((phys_addr_t)~0)
  1115  #endif
  1116  
  1117  int __init sanity_check_dt_memory(phys_addr_t *out_base,
  1118                                    phys_addr_t *out_size)
  1119  {
  1120          phys_addr_t base = *out_base, size = *out_size;
  1121          const u64 phys_offset = MIN_MEMBLOCK_ADDR;
  1122  
  1123          if (!PAGE_ALIGNED(base)) {
  1124                  if (size < PAGE_SIZE - (base & ~PAGE_MASK)) {
> 1125                          pr_err("Memblock 0x%llx - 0x%llx isn't page 
> aligned\n",
  1126                                  base, base + size);
  1127                          return -EINVAL;
  1128                  }
  1129                  pr_warn("Memblock 0x%llx - 0x%llx shifted to ",
  1130                          base, base + size);
  1131                  size -= PAGE_SIZE - (base & ~PAGE_MASK);
  1132                  base = PAGE_ALIGN(base);
  1133                  pr_cont("0x%llx - 0x%llx\n", base, base + size);

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

Attachment: .config.gz
Description: application/gzip

Reply via email to