All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-shrink-cached 62/64] lib/arena_maple_tree.c:36:33: warning: conflicting types for 'arena_mas_destroy'
@ 2026-08-19  5:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-19  5:34 UTC (permalink / raw)
  To: Jim Cromie,  Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git dd-shrink-cached
head:   917ff2e5a74ae1c252ad3a2c9017bd464f9258f9
commit: 9ddeda37ca2aba5800b9bbc30e16a1db1ce44e5c [62/64] lib/arena_maple_tree: Specialized arena-backed maple tree
config: sparc-randconfig-002-20260819 (https://download.01.org/0day-ci/archive/20260819/202608191340.3e4wLuSp-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/202608191340.3e4wLuSp-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608191340.3e4wLuSp-lkp@intel.com/

All warnings (new ones prefixed by >>):

   lib/maple_tree.c: In function 'arena_mas_alloc_cyclic':
   lib/arena_maple_tree.c:30:33: error: implicit declaration of function 'arena_mas_empty_area'; did you mean 'mas_empty_area'? [-Werror=implicit-function-declaration]
    #define mas_empty_area          arena_mas_empty_area
                                    ^~~~~~~~~~~~~~~~~~~~
   lib/maple_tree.c:3800:8: note: in expansion of macro 'mas_empty_area'
     ret = mas_empty_area(mas, range_lo, range_hi, 1);
           ^~~~~~~~~~~~~~
   lib/arena_maple_tree.c:36:33: error: implicit declaration of function 'arena_mas_destroy'; did you mean 'mas_mat_destroy'? [-Werror=implicit-function-declaration]
    #define mas_destroy             arena_mas_destroy
                                    ^~~~~~~~~~~~~~~~~
   lib/maple_tree.c:3825:2: note: in expansion of macro 'mas_destroy'
     mas_destroy(mas);
     ^~~~~~~~~~~
   lib/maple_tree.c: At top level:
>> lib/arena_maple_tree.c:36:33: warning: conflicting types for 'arena_mas_destroy'
    #define mas_destroy             arena_mas_destroy
                                    ^~~~~~~~~~~~~~~~~
   lib/maple_tree.c:4985:6: note: in expansion of macro 'mas_destroy'
    void mas_destroy(struct ma_state *mas)
         ^~~~~~~~~~~
   lib/arena_maple_tree.c:36:33: note: previous implicit declaration of 'arena_mas_destroy' was here
    #define mas_destroy             arena_mas_destroy
                                    ^~~~~~~~~~~~~~~~~
   lib/maple_tree.c:3825:2: note: in expansion of macro 'mas_destroy'
     mas_destroy(mas);
     ^~~~~~~~~~~
   lib/arena_maple_tree.c: In function 'kmem_cache_alloc_specialized':
   lib/arena_maple_tree.c:151:10: error: implicit declaration of function 'ddebug_arena_alloc'; did you mean 'vm_area_alloc'? [-Werror=implicit-function-declaration]
      return ddebug_arena_alloc(amt->arena, gfp);
             ^~~~~~~~~~~~~~~~~~
             vm_area_alloc
   lib/arena_maple_tree.c:151:10: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
      return ddebug_arena_alloc(amt->arena, gfp);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   lib/arena_maple_tree.c: In function 'kmem_cache_alloc_from_sheaf_specialized':
   lib/arena_maple_tree.c:183:11: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
       return ddebug_arena_alloc(amt->arena, gfp);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/arena_mas_destroy +36 lib/arena_maple_tree.c

    27	
    28	#define mas_alloc_cyclic        arena_mas_alloc_cyclic
    29	#define mas_walk                arena_mas_walk
    30	#define mas_empty_area          arena_mas_empty_area
    31	#define mas_empty_area_rev      arena_mas_empty_area_rev
    32	#define mas_store               arena_mas_store
    33	#define mas_store_gfp           arena_mas_store_gfp
    34	#define mas_store_prealloc      arena_mas_store_prealloc
    35	#define mas_preallocate         arena_mas_preallocate
  > 36	#define mas_destroy             arena_mas_destroy
    37	#define mas_next                arena_mas_next
    38	#define mas_next_range          arena_mas_next_range
    39	#define mt_next                 arena_mt_next
    40	#define mas_prev                arena_mas_prev
    41	#define mas_prev_range          arena_mas_prev_range
    42	#define mt_prev                 arena_mt_prev
    43	#define mas_pause               arena_mas_pause
    44	#define mas_find                arena_mas_find
    45	#define mas_find_range          arena_mas_find_range
    46	#define mas_find_rev            arena_mas_find_rev
    47	#define mas_find_range_rev      arena_mas_find_range_rev
    48	#define mas_erase               arena_mas_erase
    49	#define mtree_load              arena_mtree_load
    50	#define mtree_store_range       arena_mtree_store_range
    51	#define mtree_store             arena_mtree_store
    52	#define mtree_insert_range      arena_mtree_insert_range
    53	#define mtree_insert            arena_mtree_insert
    54	#define mtree_alloc_range       arena_mtree_alloc_range
    55	#define mtree_alloc_cyclic      arena_mtree_alloc_cyclic
    56	#define mtree_alloc_rrange      arena_mtree_alloc_rrange
    57	#define mtree_erase             arena_mtree_erase
    58	#define __mt_dup                arena___mt_dup
    59	#define mtree_dup               arena_mtree_dup
    60	#define __mt_destroy            arena___mt_destroy
    61	#define mtree_destroy           arena_mtree_destroy
    62	#define mt_find                 arena_mt_find
    63	#define mt_find_after           arena_mt_find_after
    64	#define maple_tree_tests_run    arena_maple_tree_tests_run
    65	#define maple_tree_tests_passed arena_maple_tree_tests_passed
    66	#define mt_cache_shrink         arena_mt_cache_shrink
    67	#define mt_dump                 arena_mt_dump
    68	#define mt_validate             arena_mt_validate
    69	#define mas_dump                arena_mas_dump
    70	#define mas_wr_dump             arena_mas_wr_dump
    71	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  5:34 [jimc:dd-shrink-cached 62/64] lib/arena_maple_tree.c:36:33: warning: conflicting types for 'arena_mas_destroy' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.