tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.pages head: f56372690a0a677a4dc30c36fc70c53657380bb9 commit: f56372690a0a677a4dc30c36fc70c53657380bb9 [72/72] [powerpc] switch cmm_page_array->pages[] to pointers config: powerpc-allyesconfig (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 f56372690a0a677a4dc30c36fc70c53657380bb9 # save the attached .config to linux build tree make.cross ARCH=powerpc All warnings (new ones prefixed by >>): arch/powerpc/platforms/pseries/cmm.c:481:24: sparse: incompatible types in comparison expression (different base types) arch/powerpc/platforms/pseries/cmm.c:566:30: sparse: incompatible types in comparison expression (different base types) arch/powerpc/platforms/pseries/cmm.c: In function 'cmm_count_pages': >> arch/powerpc/platforms/pseries/cmm.c:481:10: warning: comparison of distinct pointer types lacks a cast if (pa >= start && pa < end) ^ arch/powerpc/platforms/pseries/cmm.c:481:25: warning: comparison of distinct pointer types lacks a cast if (pa >= start && pa < end) ^ arch/powerpc/platforms/pseries/cmm.c: In function 'cmm_mem_going_offline': arch/powerpc/platforms/pseries/cmm.c:566:16: warning: comparison of distinct pointer types lacks a cast if ((pa_curr >= start_page) && (pa_curr < end_page)) { ^ arch/powerpc/platforms/pseries/cmm.c:566:43: warning: comparison of distinct pointer types lacks a cast if ((pa_curr >= start_page) && (pa_curr < end_page)) { ^ vim +481 arch/powerpc/platforms/pseries/cmm.c 465 * @arg: memory_isolate_notify structure with address range and count 466 * 467 * Return value: 468 * 0 on success 469 **/ 470 static unsigned long cmm_count_pages(void *arg) 471 { 472 struct memory_isolate_notify *marg = arg; 473 struct cmm_page_array *pa; 474 void *start = pfn_to_kaddr(marg->start_pfn); 475 void *end = start + (marg->nr_pages << PAGE_SHIFT); 476 unsigned long idx; 477 478 spin_lock(&cmm_lock); 479 pa = cmm_page_list; 480 while (pa) { > 481 if (pa >= start && pa < end) 482 marg->pages_found++; 483 for (idx = 0; idx < pa->index; idx++) 484 if (pa->page[idx] >= start && pa->page[idx] < end) 485 marg->pages_found++; 486 pa = pa->next; 487 } 488 spin_unlock(&cmm_lock); 489 return 0; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data