Re: [PATCH 3/7] lib/rbtree: add random seed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Wei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.14-rc5 next-20250304]
[cannot apply to akpm-mm/mm-nonmm-unstable akpm-mm/mm-everything]
[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/Wei-Yang/lib-rbtree-enable-userland-test-suite-for-rbtree-related-data-structure/20250304-092345
base:   linus/master
patch link:    https://lore.kernel.org/r/20250304011952.29182-4-richard.weiyang%40gmail.com
patch subject: [PATCH 3/7] lib/rbtree: add random seed
config: i386-buildonly-randconfig-004-20250305 (https://download.01.org/0day-ci/archive/20250305/202503051009.iTp8hlJy-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250305/202503051009.iTp8hlJy-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503051009.iTp8hlJy-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> lib/rbtree_test.c:17:22: warning: implicit conversion from 'unsigned long long' to 'ulong' (aka 'unsigned long') changes value from 3141592653589793238 to 2721204694 [-Wconstant-conversion]
      17 | __param(ulong, seed, 3141592653589793238ULL, "Random seed");
         |                ~~~~  ^~~~~~~~~~~~~~~~~~~~~~
   lib/rbtree_test.c:10:21: note: expanded from macro '__param'
      10 |         static type name = init;                \
         |                     ~~~~   ^~~~
   1 warning generated.
--
>> lib/interval_tree_test.c:22:22: warning: implicit conversion from 'unsigned long long' to 'ulong' (aka 'unsigned long') changes value from 3141592653589793238 to 2721204694 [-Wconstant-conversion]
      22 | __param(ulong, seed, 3141592653589793238ULL, "Random seed");
         |                ~~~~  ^~~~~~~~~~~~~~~~~~~~~~
   lib/interval_tree_test.c:10:21: note: expanded from macro '__param'
      10 |         static type name = init;                \
         |                     ~~~~   ^~~~
   1 warning generated.


vim +17 lib/rbtree_test.c

     8	
     9	#define __param(type, name, init, msg)		\
    10		static type name = init;		\
    11		module_param(name, type, 0444);		\
    12		MODULE_PARM_DESC(name, msg);
    13	
    14	__param(int, nnodes, 100, "Number of nodes in the rb-tree");
    15	__param(int, perf_loops, 1000, "Number of iterations modifying the rb-tree");
    16	__param(int, check_loops, 100, "Number of iterations modifying and verifying the rb-tree");
  > 17	__param(ulong, seed, 3141592653589793238ULL, "Random seed");
    18	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux