Hi Jaewon, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mmotm/master] [also build test WARNING on linus/master v5.6-rc4 next-20200303] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Jaewon-Kim/mm-mmap-show-vm_unmapped_area-error-log/20200304-193159 base: git://git.cmpxchg.org/linux-mmotm.git master config: um-x86_64_defconfig (attached as .config) compiler: gcc-7 (Debian 7.5.0-5) 7.5.0 reproduce: # save the attached .config to linux build tree make ARCH=um SUBARCH=x86_64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:15, from include/linux/list.h:9, from include/linux/module.h:9, from init/main.c:17: include/linux/mm.h: In function 'vm_unmapped_area': include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/linux/mm.h:2451:3: note: in expansion of macro 'pr_err' pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", ^~~~~~ In file included from include/linux/ring_buffer.h:5:0, from include/linux/trace_events.h:6, from include/trace/syscall.h:7, from include/linux/syscalls.h:85, from init/main.c:21: include/linux/mm.h:2451:19: note: format string is defined here pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", ~^ %ld -- In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:15, from include/linux/list.h:9, from include/linux/module.h:9, from include/linux/moduleloader.h:6, from arch/x86/um/../kernel/module.c:9: include/linux/mm.h: In function 'vm_unmapped_area': include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/linux/mm.h:2451:3: note: in expansion of macro 'pr_err' pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", ^~~~~~ -- In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:15, from fs/aio.c:14: include/linux/mm.h: In function 'vm_unmapped_area': include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' #define KERN_ERR KERN_SOH "3" /* error conditions */ ^~~~~~~~ include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR' printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~ >> include/linux/mm.h:2451:3: note: in expansion of macro 'pr_err' pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", ^~~~~~ In file included from include/linux/ring_buffer.h:5:0, from include/linux/trace_events.h:6, from include/trace/syscall.h:7, from include/linux/syscalls.h:85, from fs/aio.c:20: include/linux/mm.h:2451:19: note: format string is defined here pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", ~^ %ld vim +/pr_err +2451 include/linux/mm.h 2430 2431 /* 2432 * Search for an unmapped address range. 2433 * 2434 * We are looking for a range that: 2435 * - does not intersect with any VMA; 2436 * - is contained within the [low_limit, high_limit) interval; 2437 * - is at least the desired size. 2438 * - satisfies (begin_addr & align_mask) == (align_offset & align_mask) 2439 */ 2440 static inline unsigned long 2441 vm_unmapped_area(struct vm_unmapped_area_info *info) 2442 { 2443 unsigned long addr; 2444 2445 if (info->flags & VM_UNMAPPED_AREA_TOPDOWN) 2446 addr = unmapped_area_topdown(info); 2447 else 2448 addr = unmapped_area(info); 2449 2450 if (IS_ERR_VALUE(addr) && printk_ratelimit()) { > 2451 pr_err("%s err:%d total_vm:0x%lx flags:0x%lx len:0x%lx low:0x%lx high:0x%lx\n", 2452 __func__, addr, current->mm->total_vm, info->flags, 2453 info->length, info->low_limit, info->high_limit); 2454 } 2455 return addr; 2456 } 2457 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org