All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:group_cpus 8/9] lib/group_cpus.c:79:83: error: passing argument 1 of 'free_node_to_cpumask' from incompatible pointer type
@ 2023-12-28 11:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-28 11:36 UTC (permalink / raw)
  To: Yury Norov; +Cc: oe-kbuild-all

tree:   https://github.com/norov/linux group_cpus
head:   9e87e3fe992bf34f79fa5841a97b667c39882323
commit: 08643f5362abb830375d889fb52b490b505d3d1e [8/9] lib/group_cpus: rework group_cpus_evenly()
config: arc-defconfig (https://download.01.org/0day-ci/archive/20231228/202312281926.ME1e2b9d-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231228/202312281926.ME1e2b9d-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/202312281926.ME1e2b9d-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:56,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/slab.h:16,
                    from lib/group_cpus.c:7:
   lib/group_cpus.c: In function '__free_free_node_to_cpumask':
>> lib/group_cpus.c:79:83: error: passing argument 1 of 'free_node_to_cpumask' from incompatible pointer type [-Werror=incompatible-pointer-types]
      79 | DEFINE_FREE(free_node_to_cpumask, struct cpumask **, if (_T) free_node_to_cpumask(_T));
         |                                                                                   ^~
         |                                                                                   |
         |                                                                                   struct cpumask **
   include/linux/cleanup.h:62:78: note: in definition of macro 'DEFINE_FREE'
      62 |         static inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; }
         |                                                                              ^~~~~
   lib/group_cpus.c:70:49: note: expected 'struct cpumask (*)[1]' but argument is of type 'struct cpumask **'
      70 | static void free_node_to_cpumask(cpumask_var_t *masks)
         |                                  ~~~~~~~~~~~~~~~^~~~~
   cc1: some warnings being treated as errors


vim +/free_node_to_cpumask +79 lib/group_cpus.c

    78	
  > 79	DEFINE_FREE(free_node_to_cpumask, struct cpumask **, if (_T) free_node_to_cpumask(_T));
    80	

-- 
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:[~2023-12-28 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-28 11:36 [norov:group_cpus 8/9] lib/group_cpus.c:79:83: error: passing argument 1 of 'free_node_to_cpumask' from incompatible pointer type 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.