mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
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'?
Date: Thu, 26 May 2022 23:42:56 +0800	[thread overview]
Message-ID: <202205262353.IuelPkqA-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-05-26 15: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=202205262353.IuelPkqA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /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 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®