tree: git://git.cmpxchg.org/linux-mmotm.git master head: a2d887dee78e23dc092ff14ae2ad22592437a328 commit: cd4687a1102a69d9045d09e0af6bb9bacfb49ee5 [185/397] mm/nommu: use alloc_pages_exact() rather than it's own implementation config: m32r-m32104ut_defconfig (attached as .config) 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 git checkout cd4687a1102a69d9045d09e0af6bb9bacfb49ee5 # save the attached .config to linux build tree make.cross ARCH=m32r All warnings: mm/nommu.c: In function 'do_mmap_private': >> mm/nommu.c:1193:8: warning: assignment makes pointer from integer without a cast base = __get_free_pages(GFP_KERNEL, order); ^ vim +1193 mm/nommu.c 1177 /* allocate some memory to hold the mapping 1178 * - note that this may not return a page-aligned address if the object 1179 * we're allocating is smaller than a page 1180 */ 1181 order = get_order(len); 1182 kdebug("alloc order %d for %lx", order, len); 1183 1184 total = 1 << order; 1185 point = len >> PAGE_SHIFT; 1186 1187 /* we don't want to allocate a power-of-2 sized page set */ 1188 if (sysctl_nr_trim_pages && total - point >= sysctl_nr_trim_pages) { 1189 total = point; 1190 kdebug("try to alloc exact %lu pages", total); 1191 base = alloc_pages_exact(len, GFP_KERNEL); 1192 } else { > 1193 base = __get_free_pages(GFP_KERNEL, order); 1194 } 1195 1196 if (!base) 1197 goto enomem; 1198 1199 atomic_long_add(total, &mmap_pages_allocated); 1200 1201 region->vm_flags = vma->vm_flags |= VM_MAPPED_COPY; --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation