All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linuxppc:next-test 126/140] arch/powerpc/perf/core-book3s.c:2455:6: warning: no previous prototype for 'power_pmu_wants_prompt_pmi'
Date: Wed, 22 Dec 2021 01:15:10 +0800	[thread overview]
Message-ID: <202112220137.X16y07Dp-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2902 bytes --]

tree:   https://github.com/linuxppc/linux next-test
head:   9c4c79c450672b18889a42e6b16a0254ed9721e0
commit: 5a7745b96f43c69f9b4875bcf516a0341acbc3fb [126/140] powerpc/64s/perf: add power_pmu_wants_prompt_pmi to say whether perf wants PMIs to be soft-NMI
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20211222/202112220137.X16y07Dp-lkp(a)intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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://github.com/linuxppc/linux/commit/5a7745b96f43c69f9b4875bcf516a0341acbc3fb
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc next-test
        git checkout 5a7745b96f43c69f9b4875bcf516a0341acbc3fb
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/perf/

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

All warnings (new ones prefixed by >>):

>> arch/powerpc/perf/core-book3s.c:2455:6: warning: no previous prototype for 'power_pmu_wants_prompt_pmi' [-Wmissing-prototypes]
    2455 | bool power_pmu_wants_prompt_pmi(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/power_pmu_wants_prompt_pmi +2455 arch/powerpc/perf/core-book3s.c

  2440	
  2441	/*
  2442	 * If the perf subsystem wants performance monitor interrupts as soon as
  2443	 * possible (e.g., to sample the instruction address and stack chain),
  2444	 * this should return true. The IRQ masking code can then enable MSR[EE]
  2445	 * in some places (e.g., interrupt handlers) that allows PMI interrupts
  2446	 * though to improve accuracy of profiles, at the cost of some performance.
  2447	 *
  2448	 * The PMU counters can be enabled by other means (e.g., sysfs raw SPR
  2449	 * access), but in that case there is no need for prompt PMI handling.
  2450	 *
  2451	 * This currently returns true if any perf counter is being used. It
  2452	 * could possibly return false if only events are being counted rather than
  2453	 * samples being taken, but for now this is good enough.
  2454	 */
> 2455	bool power_pmu_wants_prompt_pmi(void)
  2456	{
  2457		struct cpu_hw_events *cpuhw;
  2458	
  2459		/*
  2460		 * This could simply test local_paca->pmcregs_in_use if that were not
  2461		 * under ifdef KVM.
  2462		 */
  2463	
  2464		if (!ppmu)
  2465			return false;
  2466	
  2467		cpuhw = this_cpu_ptr(&cpu_hw_events);
  2468		return cpuhw->n_events;
  2469	}
  2470	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: [linuxppc:next-test 126/140] arch/powerpc/perf/core-book3s.c:2455:6: warning: no previous prototype for 'power_pmu_wants_prompt_pmi'
Date: Wed, 22 Dec 2021 01:15:10 +0800	[thread overview]
Message-ID: <202112220137.X16y07Dp-lkp@intel.com> (raw)

tree:   https://github.com/linuxppc/linux next-test
head:   9c4c79c450672b18889a42e6b16a0254ed9721e0
commit: 5a7745b96f43c69f9b4875bcf516a0341acbc3fb [126/140] powerpc/64s/perf: add power_pmu_wants_prompt_pmi to say whether perf wants PMIs to be soft-NMI
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20211222/202112220137.X16y07Dp-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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://github.com/linuxppc/linux/commit/5a7745b96f43c69f9b4875bcf516a0341acbc3fb
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc next-test
        git checkout 5a7745b96f43c69f9b4875bcf516a0341acbc3fb
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/perf/

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

All warnings (new ones prefixed by >>):

>> arch/powerpc/perf/core-book3s.c:2455:6: warning: no previous prototype for 'power_pmu_wants_prompt_pmi' [-Wmissing-prototypes]
    2455 | bool power_pmu_wants_prompt_pmi(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/power_pmu_wants_prompt_pmi +2455 arch/powerpc/perf/core-book3s.c

  2440	
  2441	/*
  2442	 * If the perf subsystem wants performance monitor interrupts as soon as
  2443	 * possible (e.g., to sample the instruction address and stack chain),
  2444	 * this should return true. The IRQ masking code can then enable MSR[EE]
  2445	 * in some places (e.g., interrupt handlers) that allows PMI interrupts
  2446	 * though to improve accuracy of profiles, at the cost of some performance.
  2447	 *
  2448	 * The PMU counters can be enabled by other means (e.g., sysfs raw SPR
  2449	 * access), but in that case there is no need for prompt PMI handling.
  2450	 *
  2451	 * This currently returns true if any perf counter is being used. It
  2452	 * could possibly return false if only events are being counted rather than
  2453	 * samples being taken, but for now this is good enough.
  2454	 */
> 2455	bool power_pmu_wants_prompt_pmi(void)
  2456	{
  2457		struct cpu_hw_events *cpuhw;
  2458	
  2459		/*
  2460		 * This could simply test local_paca->pmcregs_in_use if that were not
  2461		 * under ifdef KVM.
  2462		 */
  2463	
  2464		if (!ppmu)
  2465			return false;
  2466	
  2467		cpuhw = this_cpu_ptr(&cpu_hw_events);
  2468		return cpuhw->n_events;
  2469	}
  2470	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

             reply	other threads:[~2021-12-21 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 17:15 kernel test robot [this message]
2021-12-21 17:15 ` [linuxppc:next-test 126/140] arch/powerpc/perf/core-book3s.c:2455:6: warning: no previous prototype for 'power_pmu_wants_prompt_pmi' kernel test robot

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=202112220137.X16y07Dp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.