From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:group_cpus 8/9] lib/group_cpus.c:79:83: error: passing argument 1 of 'free_node_to_cpumask' from incompatible pointer type
Date: Thu, 28 Dec 2023 19:36:10 +0800 [thread overview]
Message-ID: <202312281926.ME1e2b9d-lkp@intel.com> (raw)
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
reply other threads:[~2023-12-28 11:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202312281926.ME1e2b9d-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.