tree: git://git.cmpxchg.org/linux-mmotm.git master head: c226e49f30453de9c6d82b001a985254990b32e0 commit: 2532e38f7f96933a97c1c5fca2d72b83feaf8cd7 [212/507] mm, mempool: poison elements backed by slab allocator config: microblaze-mmu_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 2532e38f7f96933a97c1c5fca2d72b83feaf8cd7 # save the attached .config to linux build tree make.cross ARCH=microblaze All warnings: mm/mempool.c: In function 'poison_error': >> mm/mempool.c:30:2: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat=] pr_err("Mempool %p size %ld\n", pool, size); ^ vim +30 mm/mempool.c 14 #include 15 #include 16 #include 17 #include 18 #include "slab.h" 19 20 #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_SLUB_DEBUG_ON) 21 static void poison_error(mempool_t *pool, void *element, size_t size, 22 size_t byte) 23 { 24 const int nr = pool->curr_nr; 25 const int start = max_t(int, byte - (BITS_PER_LONG / 8), 0); 26 const int end = min_t(int, byte + (BITS_PER_LONG / 8), size); 27 int i; 28 29 pr_err("BUG: mempool element poison mismatch\n"); > 30 pr_err("Mempool %p size %ld\n", pool, size); 31 pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : ""); 32 for (i = start; i < end; i++) 33 pr_cont("%x ", *(u8 *)(element + i)); 34 pr_cont("%s\n", end < size ? "..." : ""); 35 dump_stack(); 36 } 37 38 static void check_slab_element(mempool_t *pool, void *element) --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation