Hi Liam, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] [cannot apply to linus/master v6.1-rc2 next-20221026] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Liam-Howlett/maple_tree-Reorganize-testing-to-restore-module-testing/20221026-232537 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20221026152155.4041070-1-Liam.Howlett%40oracle.com patch subject: [PATCH] maple_tree: Reorganize testing to restore module testing config: powerpc-randconfig-r035-20221027 compiler: powerpc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/253dbd44dc3ecb69f595258bca126a7a2a2cfbd3 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Liam-Howlett/maple_tree-Reorganize-testing-to-restore-module-testing/20221026-232537 git checkout 253dbd44dc3ecb69f595258bca126a7a2a2cfbd3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:614:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479565312' to '3574603776' [-Woverflow] 614 | 0x7f36d5102000, 0x7f36d5103000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:614:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479569408' to '3574607872' [-Woverflow] 614 | 0x7f36d5102000, 0x7f36d5103000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:615:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479569408' to '3574607872' [-Woverflow] 615 | 0x7f36d5103000, 0x7f36d5104000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:615:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479573504' to '3574611968' [-Woverflow] 615 | 0x7f36d5103000, 0x7f36d5104000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:616:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479573504' to '3574611968' [-Woverflow] 616 | 0x7f36d5104000, 0x7f36d5105000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:616:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479577600' to '3574616064' [-Woverflow] 616 | 0x7f36d5104000, 0x7f36d5105000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:617:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677561344' to '1484173312' [-Woverflow] 617 | 0x7fff5876b000, 0x7fff5878d000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:617:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677700608' to '1484312576' [-Woverflow] 617 | 0x7fff5876b000, 0x7fff5878d000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:618:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677704704' to '1484316672' [-Woverflow] 618 | 0x7fff5878e000, 0x7fff58791000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:618:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677716992' to '1484328960' [-Woverflow] 618 | 0x7fff5878e000, 0x7fff58791000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:619:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677716992' to '1484328960' [-Woverflow] 619 | 0x7fff58791000, 0x7fff58793000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:619:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677725184' to '1484337152' [-Woverflow] 619 | 0x7fff58791000, 0x7fff58793000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:629:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071236096' to '883929088' [-Woverflow] 629 | 0x565234afb000, 0x565234afc000, 0x1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:629:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071240192' to '883933184' [-Woverflow] 629 | 0x565234afb000, 0x565234afc000, 0x1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:630:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071248384' to '883941376' [-Woverflow] 630 | 0x565234afe000, 0x565235def000, 0x12F1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:630:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091109888' to '903802880' [-Woverflow] 630 | 0x565234afe000, 0x565235def000, 0x12F1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:631:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091245056' to '903938048' [-Woverflow] 631 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:631:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873474301952' to '3569340416' [-Woverflow] 631 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:631:49: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '44962383056896' to '2665402368' [-Woverflow] 631 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:643:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071227904' to '883920896' [-Woverflow] 643 | 0x565234af9000, /* Min */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:644:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677716992' to '1484328960' [-Woverflow] 644 | 0x7fff58791000, /* Max */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:646:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677700608' to '1484312576' [-Woverflow] 646 | 0x7fff5878d << 12, /* First rev hole of size 0x1000 */ | ^~~~~~~~~~~ lib/test_maple_tree.c:650:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071195136' to '883888128' [-Woverflow] 650 | 0x565234AF1 << 12, /* Max */ | ^~~~~~~~~~~ lib/test_maple_tree.c:652:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071182848' to '883875840' [-Woverflow] 652 | 0x565234AEE << 12, /* max - 3. */ | ^~~~~~~~~~~ lib/test_maple_tree.c:658:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '2305843009213689856' to '4294963200' [-Woverflow] 658 | 562949953421311 << 12,/* First rev hole of size 0x1000 */ | ^~~~~~~~~~~~~~~ lib/test_maple_tree.c:662:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479598080' to '3574636544' [-Woverflow] 662 | 0x7F36D510A << 12, /* Max */ | ^~~~~~~~~~~ lib/test_maple_tree.c:664:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479581696' to '3574620160' [-Woverflow] 664 | 0x7F36D5106 << 12, /* First rev hole of size 0x4000 */ | ^~~~~~~~~~~ lib/test_maple_tree.c:669:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479184384' to '3574222848' [-Woverflow] 669 | 34148798629 << 12, | ^~~~~~~~~~~ lib/test_maple_tree.c:671:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873474224128' to '3569262592' [-Woverflow] 671 | 34148797418 << 12, | ^~~~~~~~~~~ lib/test_maple_tree.c:676:17: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow] 676 | 18446744073709551615UL, | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:677:17: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '2305702274535972864' to '2810634240' [-Woverflow] 677 | 562915594369134UL << 12, | ^~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:13:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '562949953421312' to '0' [-Woverflow] 13 | #define MTREE_ALLOC_MAX 0x2000000000000Ul | ^~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:689:31: note: in expansion of macro 'MTREE_ALLOC_MAX' 689 | mtree_store_range(mt, MTREE_ALLOC_MAX, ULONG_MAX, XA_ZERO_ENTRY, | ^~~~~~~~~~~~~~~ >> lib/test_maple_tree.c:701:17: error: implicit declaration of function 'mt_validate' [-Werror=implicit-function-declaration] 701 | mt_validate(mt); | ^~~~~~~~~~~ lib/test_maple_tree.c:746:25: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '34148798727' to '4084027655' [-Woverflow] 746 | mtree_erase(mt, 34148798727); /* create a deleted range. */ | ^~~~~~~~~~~ lib/test_maple_tree.c:747:41: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '34359052173' to '4294281101' [-Woverflow] 747 | check_mtree_alloc_rrange(mt, 0, 34359052173, 210253414, | ^~~~~~~~~~~ lib/test_maple_tree.c:748:25: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '34148798725' to '4084027653' [-Woverflow] 748 | 34148798725, 0, mt); | ^~~~~~~~~~~ lib/test_maple_tree.c: In function 'check_alloc_range': lib/test_maple_tree.c:763:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071199232' to '883892224' [-Woverflow] 763 | 0x565234af2000, 0x565234af4000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:763:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071207424' to '883900416' [-Woverflow] 763 | 0x565234af2000, 0x565234af4000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:764:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071207424' to '883900416' [-Woverflow] 764 | 0x565234af4000, 0x565234af9000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:764:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071227904' to '883920896' [-Woverflow] 764 | 0x565234af4000, 0x565234af9000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:765:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071227904' to '883920896' [-Woverflow] 765 | 0x565234af9000, 0x565234afb000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:765:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071236096' to '883929088' [-Woverflow] 765 | 0x565234af9000, 0x565234afb000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:766:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071240192' to '883933184' [-Woverflow] 766 | 0x565234afc000, 0x565234afd000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:766:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071244288' to '883937280' [-Woverflow] 766 | 0x565234afc000, 0x565234afd000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:767:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071244288' to '883937280' [-Woverflow] 767 | 0x565234afd000, 0x565234afe000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:767:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071248384' to '883941376' [-Woverflow] 767 | 0x565234afd000, 0x565234afe000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:768:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091109888' to '903802880' [-Woverflow] 768 | 0x565235def000, 0x565235e10000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:768:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091245056' to '903938048' [-Woverflow] 768 | 0x565235def000, 0x565235e10000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:769:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873474301952' to '3569340416' [-Woverflow] 769 | 0x7f36d4bfd000, 0x7f36d4ee2000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:769:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873477337088' to '3572375552' [-Woverflow] 769 | 0x7f36d4bfd000, 0x7f36d4ee2000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:770:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873477337088' to '3572375552' [-Woverflow] 770 | 0x7f36d4ee2000, 0x7f36d4f04000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:770:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873477476352' to '3572514816' [-Woverflow] 770 | 0x7f36d4ee2000, 0x7f36d4f04000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:771:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873477476352' to '3572514816' [-Woverflow] 771 | 0x7f36d4f04000, 0x7f36d504c000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:771:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873478819840' to '3573858304' [-Woverflow] 771 | 0x7f36d4f04000, 0x7f36d504c000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:772:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873478819840' to '3573858304' [-Woverflow] 772 | 0x7f36d504c000, 0x7f36d5098000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:772:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479131136' to '3574169600' [-Woverflow] 772 | 0x7f36d504c000, 0x7f36d5098000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:773:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479131136' to '3574169600' [-Woverflow] 773 | 0x7f36d5098000, 0x7f36d5099000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:773:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479135232' to '3574173696' [-Woverflow] 773 | 0x7f36d5098000, 0x7f36d5099000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:774:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479135232' to '3574173696' [-Woverflow] 774 | 0x7f36d5099000, 0x7f36d509d000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:774:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479151616' to '3574190080' [-Woverflow] 774 | 0x7f36d5099000, 0x7f36d509d000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:775:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479151616' to '3574190080' [-Woverflow] 775 | 0x7f36d509d000, 0x7f36d509f000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:775:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479159808' to '3574198272' [-Woverflow] 775 | 0x7f36d509d000, 0x7f36d509f000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:776:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479159808' to '3574198272' [-Woverflow] 776 | 0x7f36d509f000, 0x7f36d50a5000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:776:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479184384' to '3574222848' [-Woverflow] 776 | 0x7f36d509f000, 0x7f36d50a5000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:777:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479266304' to '3574304768' [-Woverflow] 777 | 0x7f36d50b9000, 0x7f36d50db000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:777:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479405568' to '3574444032' [-Woverflow] -- 786 | 0x7fff58791000, 0x7fff58793000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:786:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677725184' to '1484337152' [-Woverflow] 786 | 0x7fff58791000, 0x7fff58793000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:790:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071236096' to '883929088' [-Woverflow] 790 | 0x565234afb000, 0x565234afc000, 0x1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:790:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071240192' to '883933184' [-Woverflow] 790 | 0x565234afb000, 0x565234afc000, 0x1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:791:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071248384' to '883941376' [-Woverflow] 791 | 0x565234afe000, 0x565235def000, 0x12F1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:791:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091109888' to '903802880' [-Woverflow] 791 | 0x565234afe000, 0x565235def000, 0x12F1000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:792:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911091245056' to '903938048' [-Woverflow] 792 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:792:33: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873474301952' to '3569340416' [-Woverflow] 792 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:792:49: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '44962383056896' to '2665402368' [-Woverflow] 792 | 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:804:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071227904' to '883920896' [-Woverflow] 804 | 0x565234af9000, /* Min */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:805:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677716992' to '1484328960' [-Woverflow] 805 | 0x7fff58791000, /* Max */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:807:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071236096' to '883929088' [-Woverflow] 807 | 0x565234afb000, /* First hole in our data of size 1000. */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:811:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677716992' to '1484328960' [-Woverflow] 811 | 0x7fff58791000, /* Max */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:817:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873474297856' to '3569336320' [-Woverflow] 817 | 34148797436 << 12, /* Min */ | ^~~~~~~~~~~ lib/test_maple_tree.c:818:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677839872' to '1484451840' [-Woverflow] 818 | 0x7fff587AF000, /* Max */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:820:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479184384' to '3574222848' [-Woverflow] 820 | 34148798629 << 12, /* Expected location */ | ^~~~~~~~~~~ lib/test_maple_tree.c:824:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479159808' to '3574198272' [-Woverflow] 824 | 34148798623 << 12, /* Min */ | ^~~~~~~~~~~ lib/test_maple_tree.c:825:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479405568' to '3574444032' [-Woverflow] 825 | 34148798683 << 12, /* Max */ | ^~~~~~~~~~~ lib/test_maple_tree.c:831:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479159808' to '3574198272' [-Woverflow] 831 | 34148798623 << 12, /* Min */ | ^~~~~~~~~~~ lib/test_maple_tree.c:832:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677839872' to '1484451840' [-Woverflow] 832 | 0x7fff587AF000, /* Max */ | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:834:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '139873479196672' to '3574235136' [-Woverflow] 834 | 34148798632 << 12, /* Expected location */ | ^~~~~~~~~~~ lib/test_maple_tree.c:847:17: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744039350530048' to '716800' [-Woverflow] 847 | 4503599618982063UL << 12, /* Size */ | ^~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:848:17: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '140734677721088' to '1484333056' [-Woverflow] 848 | 34359052178 << 12, /* Expected location */ | ^~~~~~~~~~~ lib/test_maple_tree.c:853:29: warning: unsigned conversion from 'long long int' to 'long unsigned int' changes value from '94911071199232' to '883892224' [-Woverflow] 853 | unsigned long min = 0x565234af2000; | ^~~~~~~~~~~~~~ lib/test_maple_tree.c:13:25: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '562949953421312' to '0' [-Woverflow] 13 | #define MTREE_ALLOC_MAX 0x2000000000000Ul | ^~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:856:31: note: in expansion of macro 'MTREE_ALLOC_MAX' 856 | mtree_store_range(mt, MTREE_ALLOC_MAX, ULONG_MAX, XA_ZERO_ENTRY, | ^~~~~~~~~~~~~~~ lib/test_maple_tree.c: In function 'check_fuzzer': lib/test_maple_tree.c:1955:39: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow] 1955 | mtree_test_store_range(mt, 0, 18446744073709551615UL, (void *)0x1); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2011:31: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow] 2011 | mtree_test_insert(mt, 18446744073709551615UL, | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2013:30: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow] 2013 | mtree_test_erase(mt, 18446744073709551615UL); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2282:31: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551605' to '4294967285' [-Woverflow] 2282 | mtree_test_insert(mt, 18446744073709551605UL, (void *)0xffffffffffffffeb); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2283:30: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551605' to '4294967285' [-Woverflow] 2283 | mtree_test_erase(mt, 18446744073709551605UL); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2299:31: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551605' to '4294967285' [-Woverflow] 2299 | mtree_test_insert(mt, 18446744073709551605UL, (void *)0xffffffffffffffeb); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c:2300:30: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551605' to '4294967285' [-Woverflow] 2300 | mtree_test_erase(mt, 18446744073709551605UL); | ^~~~~~~~~~~~~~~~~~~~~~ lib/test_maple_tree.c: In function 'check_dup': >> lib/test_maple_tree.c:2358:9: error: implicit declaration of function 'mt_cache_shrink' [-Werror=implicit-function-declaration] 2358 | mt_cache_shrink(); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:29, from include/linux/maple_tree.h:11, from lib/test_maple_tree.c:10: lib/test_maple_tree.c: In function 'maple_tree_seed': >> lib/test_maple_tree.c:2678:38: error: 'maple_tree_tests_passed' undeclared (first use in this function) 2678 | atomic_read(&maple_tree_tests_passed), | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap' 429 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:530:9: note: in expansion of macro 'printk' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ lib/test_maple_tree.c:2677:9: note: in expansion of macro 'pr_info' 2677 | pr_info("maple_tree: %u of %u tests passed\n", | ^~~~~~~ lib/test_maple_tree.c:2678:38: note: each undeclared identifier is reported only once for each function it appears in 2678 | atomic_read(&maple_tree_tests_passed), | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap' 429 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:530:9: note: in expansion of macro 'printk' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ lib/test_maple_tree.c:2677:9: note: in expansion of macro 'pr_info' 2677 | pr_info("maple_tree: %u of %u tests passed\n", | ^~~~~~~ >> lib/test_maple_tree.c:2679:38: error: 'maple_tree_tests_run' undeclared (first use in this function) 2679 | atomic_read(&maple_tree_tests_run)); | ^~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap' 429 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:530:9: note: in expansion of macro 'printk' 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ lib/test_maple_tree.c:2677:9: note: in expansion of macro 'pr_info' 2677 | pr_info("maple_tree: %u of %u tests passed\n", | ^~~~~~~ cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] vim +/mt_validate +701 lib/test_maple_tree.c 584 585 586 static noinline void check_alloc_rev_range(struct maple_tree *mt) 587 { 588 /* 589 * Generated by: 590 * cat /proc/self/maps | awk '{print $1}'| 591 * awk -F "-" '{printf "0x%s, 0x%s, ", $1, $2}' 592 */ 593 594 unsigned long range[] = { 595 /* Inclusive , Exclusive. */ 596 0x565234af2000, 0x565234af4000, 597 0x565234af4000, 0x565234af9000, 598 0x565234af9000, 0x565234afb000, 599 0x565234afc000, 0x565234afd000, 600 0x565234afd000, 0x565234afe000, 601 0x565235def000, 0x565235e10000, 602 0x7f36d4bfd000, 0x7f36d4ee2000, 603 0x7f36d4ee2000, 0x7f36d4f04000, 604 0x7f36d4f04000, 0x7f36d504c000, 605 0x7f36d504c000, 0x7f36d5098000, 606 0x7f36d5098000, 0x7f36d5099000, 607 0x7f36d5099000, 0x7f36d509d000, 608 0x7f36d509d000, 0x7f36d509f000, 609 0x7f36d509f000, 0x7f36d50a5000, 610 0x7f36d50b9000, 0x7f36d50db000, 611 0x7f36d50db000, 0x7f36d50dc000, 612 0x7f36d50dc000, 0x7f36d50fa000, 613 0x7f36d50fa000, 0x7f36d5102000, 614 0x7f36d5102000, 0x7f36d5103000, 615 0x7f36d5103000, 0x7f36d5104000, 616 0x7f36d5104000, 0x7f36d5105000, 617 0x7fff5876b000, 0x7fff5878d000, 618 0x7fff5878e000, 0x7fff58791000, 619 0x7fff58791000, 0x7fff58793000, 620 }; 621 622 unsigned long holes[] = { 623 /* 624 * Note: start of hole is INCLUSIVE 625 * end of hole is EXCLUSIVE 626 * (opposite of the above table.) 627 * Start of hole, end of hole, size of hole (+1) 628 */ 629 0x565234afb000, 0x565234afc000, 0x1000, 630 0x565234afe000, 0x565235def000, 0x12F1000, 631 0x565235e10000, 0x7f36d4bfd000, 0x28E49EDED000, 632 }; 633 634 /* 635 * req_range consists of 4 values. 636 * 1. min index 637 * 2. max index 638 * 3. size 639 * 4. number that should be returned. 640 * 5. return value 641 */ 642 unsigned long req_range[] = { 643 0x565234af9000, /* Min */ 644 0x7fff58791000, /* Max */ 645 0x1000, /* Size */ 646 0x7fff5878d << 12, /* First rev hole of size 0x1000 */ 647 0, /* Return value success. */ 648 649 0x0, /* Min */ 650 0x565234AF1 << 12, /* Max */ 651 0x3000, /* Size */ 652 0x565234AEE << 12, /* max - 3. */ 653 0, /* Return value success. */ 654 655 0x0, /* Min */ 656 -1, /* Max */ 657 0x1000, /* Size */ 658 562949953421311 << 12,/* First rev hole of size 0x1000 */ 659 0, /* Return value success. */ 660 661 0x0, /* Min */ 662 0x7F36D510A << 12, /* Max */ 663 0x4000, /* Size */ 664 0x7F36D5106 << 12, /* First rev hole of size 0x4000 */ 665 0, /* Return value success. */ 666 667 /* Ascend test. */ 668 0x0, 669 34148798629 << 12, 670 19 << 12, 671 34148797418 << 12, 672 0x0, 673 674 /* Too big test. */ 675 0x0, 676 18446744073709551615UL, 677 562915594369134UL << 12, 678 0x0, 679 -EBUSY, 680 681 }; 682 683 int i, range_count = ARRAY_SIZE(range); 684 int req_range_count = ARRAY_SIZE(req_range); 685 unsigned long min = 0; 686 687 MA_STATE(mas, mt, 0, 0); 688 689 mtree_store_range(mt, MTREE_ALLOC_MAX, ULONG_MAX, XA_ZERO_ENTRY, 690 GFP_KERNEL); 691 #define DEBUG_REV_RANGE 0 692 for (i = 0; i < range_count; i += 2) { 693 /* Inclusive, Inclusive (with the -1) */ 694 695 #if DEBUG_REV_RANGE 696 pr_debug("\t%s: Insert %lu-%lu\n", __func__, range[i] >> 12, 697 (range[i + 1] >> 12) - 1); 698 #endif 699 check_insert_range(mt, range[i] >> 12, (range[i + 1] >> 12) - 1, 700 xa_mk_value(range[i] >> 12), 0); > 701 mt_validate(mt); 702 } 703 704 705 mas_lock(&mas); 706 for (i = 0; i < ARRAY_SIZE(holes); i += 3) { 707 #if DEBUG_REV_RANGE 708 pr_debug("Search from %lu-%lu for gap %lu should be at %lu\n", 709 min, holes[i+1]>>12, holes[i+2]>>12, 710 holes[i] >> 12); 711 #endif 712 MT_BUG_ON(mt, mas_empty_area_rev(&mas, min, 713 holes[i+1] >> 12, 714 holes[i+2] >> 12)); 715 #if DEBUG_REV_RANGE 716 pr_debug("Found %lu %lu\n", mas.index, mas.last); 717 pr_debug("gap %lu %lu\n", (holes[i] >> 12), 718 (holes[i+1] >> 12)); 719 #endif 720 MT_BUG_ON(mt, mas.last + 1 != (holes[i+1] >> 12)); 721 MT_BUG_ON(mt, mas.index != (holes[i+1] >> 12) - (holes[i+2] >> 12)); 722 min = holes[i+1] >> 12; 723 mas_reset(&mas); 724 } 725 726 mas_unlock(&mas); 727 for (i = 0; i < req_range_count; i += 5) { 728 #if DEBUG_REV_RANGE 729 pr_debug("\tReverse request between %lu-%lu size %lu, should get %lu\n", 730 req_range[i] >> 12, 731 (req_range[i + 1] >> 12) - 1, 732 req_range[i+2] >> 12, 733 req_range[i+3] >> 12); 734 #endif 735 check_mtree_alloc_rrange(mt, 736 req_range[i] >> 12, /* start */ 737 req_range[i+1] >> 12, /* end */ 738 req_range[i+2] >> 12, /* size */ 739 req_range[i+3] >> 12, /* expected address */ 740 req_range[i+4], /* expected return */ 741 xa_mk_value(req_range[i] >> 12)); /* pointer */ 742 mt_validate(mt); 743 } 744 745 mt_set_non_kernel(1); 746 mtree_erase(mt, 34148798727); /* create a deleted range. */ 747 check_mtree_alloc_rrange(mt, 0, 34359052173, 210253414, 748 34148798725, 0, mt); 749 750 mtree_destroy(mt); 751 } 752 -- 0-DAY CI Kernel Test Service https://01.org/lkp