tree: https://android.googlesource.com/kernel/common android12-5.10 head: 25a0835d5ec1cc4462d853326945cd4dfec4fe17 commit: ddc4a48797352076586ef3ab79c6bfaba08fd06e [2/13] ANDROID: mm: page_pinner: introduce failure_tracking feature config: i386-randconfig-r003-20210603 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): git remote add android-common https://android.googlesource.com/kernel/common git fetch --no-tags android-common android12-5.10 git checkout ddc4a48797352076586ef3ab79c6bfaba08fd06e # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): mm/page_pinner.c: In function '__page_pinner_migration_failed': >> mm/page_pinner.c:304:22: warning: variable 'page_pinner' set but not used [-Wunused-but-set-variable] 304 | struct page_pinner *page_pinner; | ^~~~~~~~~~~ vim +/page_pinner +304 mm/page_pinner.c 300 301 void __page_pinner_migration_failed(struct page *page) 302 { 303 struct page_ext *page_ext = lookup_page_ext(page); > 304 struct page_pinner *page_pinner; 305 depot_stack_handle_t handle; 306 unsigned long flags; 307 unsigned int idx; 308 309 if (unlikely(!page_ext)) 310 return; 311 312 page_pinner = get_page_pinner(page_ext); 313 if (!test_bit(PAGE_EXT_PINNER_MIGRATION_FAILED, &page_ext->flags)) 314 return; 315 316 handle = save_stack(GFP_NOWAIT|__GFP_NOWARN); 317 318 spin_lock_irqsave(&acf_pinner.lock, flags); 319 idx = acf_pinner.index++; 320 acf_pinner.index %= LONTERM_PIN_BUCKETS; 321 322 acf_pinner.pinner[idx].handle = handle; 323 acf_pinner.pinner[idx].ts_usec = ktime_to_us(ktime_get_boottime()); 324 acf_pinner.pinner[idx].page_flags = page->flags; 325 acf_pinner.pinner[idx].page_mt = get_pageblock_migratetype(page); 326 acf_pinner.pinner[idx].pfn = page_to_pfn(page); 327 spin_unlock_irqrestore(&acf_pinner.lock, flags); 328 } 329 EXPORT_SYMBOL(__page_pinner_migration_failed); 330 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org