[peterz-queue:perf/wip.rewrite 1/8] arch/s390/kernel/perf_pai_crypto.c:438:25: error: initialization of 'void (*)(struct perf_event_pmu_context *, bool)' {aka 'void (*)(struct perf_event_pmu_context *, _Bool)'} from incompatible pointer type 'void (*)(struct perf_event_context *, bool)' {ak...

From: kernel test robot
Date: Thu Aug 25 2022 - 16:21:45 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.rewrite
head: b149fd14e2fb487c8d8b07d353421101c33bbf2b
commit: 9cfa6ca70dab0951f2631f8baf29e1370925b4d6 [1/8] perf: Rewrite core context handling
config: s390-randconfig-r044-20220824 (https://download.01.org/0day-ci/archive/20220826/202208260405.2IwYS5s3-lkp@xxxxxxxxx/config)
compiler: s390-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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=9cfa6ca70dab0951f2631f8baf29e1370925b4d6
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/wip.rewrite
git checkout 9cfa6ca70dab0951f2631f8baf29e1370925b4d6
# 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=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/s390/kernel/perf_pai_crypto.c:438:25: error: initialization of 'void (*)(struct perf_event_pmu_context *, bool)' {aka 'void (*)(struct perf_event_pmu_context *, _Bool)'} from incompatible pointer type 'void (*)(struct perf_event_context *, bool)' {aka 'void (*)(struct perf_event_context *, _Bool)'} [-Werror=incompatible-pointer-types]
438 | .sched_task = paicrypt_sched_task,
| ^~~~~~~~~~~~~~~~~~~
arch/s390/kernel/perf_pai_crypto.c:438:25: note: (near initialization for 'paicrypt.sched_task')
cc1: some warnings being treated as errors


vim +438 arch/s390/kernel/perf_pai_crypto.c

39d62336f5c126 Thomas Richter 2022-05-04 428
39d62336f5c126 Thomas Richter 2022-05-04 429 /* Performance monitoring unit for mapped counters */
39d62336f5c126 Thomas Richter 2022-05-04 430 static struct pmu paicrypt = {
39d62336f5c126 Thomas Richter 2022-05-04 431 .task_ctx_nr = perf_invalid_context,
39d62336f5c126 Thomas Richter 2022-05-04 432 .event_init = paicrypt_event_init,
39d62336f5c126 Thomas Richter 2022-05-04 433 .add = paicrypt_add,
39d62336f5c126 Thomas Richter 2022-05-04 434 .del = paicrypt_del,
39d62336f5c126 Thomas Richter 2022-05-04 435 .start = paicrypt_start,
39d62336f5c126 Thomas Richter 2022-05-04 436 .stop = paicrypt_stop,
39d62336f5c126 Thomas Richter 2022-05-04 437 .read = paicrypt_read,
39d62336f5c126 Thomas Richter 2022-05-04 @438 .sched_task = paicrypt_sched_task,
39d62336f5c126 Thomas Richter 2022-05-04 439 .attr_groups = paicrypt_attr_groups
39d62336f5c126 Thomas Richter 2022-05-04 440 };
39d62336f5c126 Thomas Richter 2022-05-04 441

:::::: The code at line 438 was first introduced by commit
:::::: 39d62336f5c126ad6dccdf66cd249f2d0e86d3c9 s390/pai: add support for cryptography counters

:::::: TO: Thomas Richter <tmricht@xxxxxxxxxxxxx>
:::::: CC: Heiko Carstens <hca@xxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp