[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202210132113.0weoXZP0-lkp@intel.com>
Date: Thu, 13 Oct 2022 21:49:06 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Ravi Bangoria <ravi.bangoria@....com>
Subject: [peterz-queue:perf/core 5/6] arch/s390/kernel/perf_pai_ext.c:533: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 '...
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/core
head: a7560340a5a83514ad5117aec2c770956e1813f3
commit: aab8cdf010eb30b0214da37cb770b4f965637a97 [5/6] perf: Rewrite core context handling
config: s390-allmodconfig
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=aab8cdf010eb30b0214da37cb770b4f965637a97
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/core
git checkout aab8cdf010eb30b0214da37cb770b4f965637a97
# 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 arch/s390/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/s390/kernel/perf_pai_ext.c:533: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]
533 | .sched_task = paiext_sched_task,
| ^~~~~~~~~~~~~~~~~
arch/s390/kernel/perf_pai_ext.c:533:25: note: (near initialization for 'paiext.sched_task')
cc1: some warnings being treated as errors
vim +533 arch/s390/kernel/perf_pai_ext.c
c432fefe8e6262b Thomas Richter 2022-06-30 523
c432fefe8e6262b Thomas Richter 2022-06-30 524 /* Performance monitoring unit for mapped counters */
c432fefe8e6262b Thomas Richter 2022-06-30 525 static struct pmu paiext = {
c432fefe8e6262b Thomas Richter 2022-06-30 526 .task_ctx_nr = perf_invalid_context,
c432fefe8e6262b Thomas Richter 2022-06-30 527 .event_init = paiext_event_init,
c432fefe8e6262b Thomas Richter 2022-06-30 528 .add = paiext_add,
c432fefe8e6262b Thomas Richter 2022-06-30 529 .del = paiext_del,
c432fefe8e6262b Thomas Richter 2022-06-30 530 .start = paiext_start,
c432fefe8e6262b Thomas Richter 2022-06-30 531 .stop = paiext_stop,
c432fefe8e6262b Thomas Richter 2022-06-30 532 .read = paiext_read,
c432fefe8e6262b Thomas Richter 2022-06-30 @533 .sched_task = paiext_sched_task,
c432fefe8e6262b Thomas Richter 2022-06-30 534 .attr_groups = paiext_attr_groups,
c432fefe8e6262b Thomas Richter 2022-06-30 535 };
c432fefe8e6262b Thomas Richter 2022-06-30 536
:::::: The code at line 533 was first introduced by commit
:::::: c432fefe8e6262bf3d288ab82d006cfafa78a139 s390/pai: Add support for PAI Extension 1 NNPA counters
:::::: TO: Thomas Richter <tmricht@...ux.ibm.com>
:::::: CC: Vasily Gorbik <gor@...ux.ibm.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (120812 bytes)
Powered by blists - more mailing lists