mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [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'?
@ 2022-05-26 15:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-26 15:42 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-26 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 15:42 [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'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®