lkml.org 
[lkml]   [2022]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[peterz-queue:perf/wip.cleanup 9/10] arch/x86/events/perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'?
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.cleanup
head: 012bb7ae4eb84ae93ded12888ccd1e123c64200f
commit: c838cb5fbb27ca829668a88691b07ca63f91fde7 [9/10] perf/x86/intel: Optimize short PEBS counters
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220526/202205262353.IuelPkqA-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=c838cb5fbb27ca829668a88691b07ca63f91fde7
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.cleanup
git checkout c838cb5fbb27ca829668a88691b07ca63f91fde7
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

In file included from arch/x86/events/core.c:45:
arch/x86/events/perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/events/perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/events/perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
cc1: some warnings being treated as errors
--
In file included from arch/x86/events/intel/core.c:25:
arch/x86/events/intel/../perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/events/intel/../perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/events/intel/../perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
arch/x86/events/intel/core.c: In function 'intel_pmu_handle_short_pebs':
>> arch/x86/events/intel/core.c:2841:33: error: invalid operands to binary & (have 'long unsigned int *' and 'long long unsigned int')
2841 | if (!(cpuc->active_mask & (1ULL << hwc->idx)))
| ~~~~ ^ ~~~~~~~~~~~~~~~~~~
| | |
| long unsigned int * long long unsigned int
cc1: some warnings being treated as errors
--
In file included from arch/x86/events/intel/bts.c:21:
arch/x86/events/intel/../perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/events/intel/../perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/events/intel/../perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
cc1: some warnings being treated as errors
--
In file included from arch/x86/events/zhaoxin/core.c:19:
arch/x86/events/zhaoxin/../perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/events/zhaoxin/../perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/events/zhaoxin/../perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
cc1: some warnings being treated as errors
--
In file included from arch/x86/events/amd/core.c:14:
arch/x86/events/amd/../perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/events/amd/../perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/events/amd/../perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
cc1: some warnings being treated as errors
--
In file included from arch/x86/kernel/cpu/resctrl/pseudo_lock.c:30:
arch/x86/include/uapi/../../events/perf_event.h: In function 'intel_pmu_is_short_pebs':
>> arch/x86/include/uapi/../../events/perf_event.h:1056:23: error: implicit declaration of function 'this_cpu_load'; did you mean 'this_cpu_read'? [-Werror=implicit-function-declaration]
1056 | s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
| ^~~~~~~~~~~~~
| this_cpu_read
>> arch/x86/include/uapi/../../events/perf_event.h:1057:20: error: implicit declaration of function 'load64_read'; did you mean 'local64_read'? [-Werror=implicit-function-declaration]
1057 | s64 left = load64_read(&hwc->period_left);
| ^~~~~~~~~~~
| local64_read
cc1: some warnings being treated as errors


vim +1056 arch/x86/events/perf_event.h

1052
1053 static inline bool intel_pmu_is_short_pebs(struct perf_event *event)
1054 {
1055 struct hw_perf_event *hwc = &event->hw;
> 1056 s64 counter = this_cpu_load(pmc_prev_left[hwc->idx]);
> 1057 s64 left = load64_read(&hwc->period_left);
1058
1059 return counter < left;
1060 }
1061

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

\
 
 \ /
  Last update: 2022-05-26 17:44    [W:0.042 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site