linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Madhavan Srinivasan <maddy@linux.ibm.com>,
	mpe@ellerman.id.au, npiggin@gmail.com,
	christophe.leroy@csgroup.eu
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linuxppc-dev@lists.ozlabs.org,
	Madhavan Srinivasan <maddy@linux.ibm.com>
Subject: Re: [PATCH v2 1/4] powerpc/perf/core-book3s: Avoid loading platform pmu driver during dump kernel
Date: Wed, 5 Mar 2025 23:29:03 +0800	[thread overview]
Message-ID: <202503052346.eTbppObo-lkp@intel.com> (raw)
In-Reply-To: <20250301182310.6832-1-maddy@linux.ibm.com>

Hi Madhavan,

kernel test robot noticed the following build errors:

[auto build test ERROR on powerpc/next]
[also build test ERROR on powerpc/fixes linus/master v6.14-rc5 next-20250305]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Madhavan-Srinivasan/powerpc-perf-hv-24x7-Avoid-loading-hv-24x7-during-dump-kernel/20250302-022531
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
patch link:    https://lore.kernel.org/r/20250301182310.6832-1-maddy%40linux.ibm.com
patch subject: [PATCH v2 1/4] powerpc/perf/core-book3s: Avoid loading platform pmu driver during dump kernel
config: powerpc64-randconfig-001-20250305 (https://download.01.org/0day-ci/archive/20250305/202503052346.eTbppObo-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250305/202503052346.eTbppObo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503052346.eTbppObo-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/powerpc/perf/core-book3s.c:2599:6: error: call to undeclared function 'is_kdump_kernel'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2599 |         if (is_kdump_kernel() || is_fadump_active())
         |             ^
   1 error generated.


vim +/is_kdump_kernel +2599 arch/powerpc/perf/core-book3s.c

  2587	
  2588	static int __init init_ppc64_pmu(void)
  2589	{
  2590		if (cpu_has_feature(CPU_FTR_HVMODE) && pmu_override) {
  2591			pr_warn("disabling perf due to pmu_override= command line option.\n");
  2592			on_each_cpu(do_pmu_override, NULL, 1);
  2593			return 0;
  2594		}
  2595	
  2596		/*
  2597		 * If the dump kernel is active, skip loading these drivers
  2598		 */
> 2599		if (is_kdump_kernel() || is_fadump_active())
  2600			return 0;
  2601	
  2602		/* run through all the pmu drivers one at a time */
  2603		if (!init_power5_pmu())
  2604			return 0;
  2605		else if (!init_power5p_pmu())
  2606			return 0;
  2607		else if (!init_power6_pmu())
  2608			return 0;
  2609		else if (!init_power7_pmu())
  2610			return 0;
  2611		else if (!init_power8_pmu())
  2612			return 0;
  2613		else if (!init_power9_pmu())
  2614			return 0;
  2615		else if (!init_power10_pmu())
  2616			return 0;
  2617		else if (!init_power11_pmu())
  2618			return 0;
  2619		else if (!init_ppc970_pmu())
  2620			return 0;
  2621		else
  2622			return init_generic_compat_pmu();
  2623	}
  2624	early_initcall(init_ppc64_pmu);
  2625	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


      parent reply	other threads:[~2025-03-05 15:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-01 18:23 [PATCH v2 1/4] powerpc/perf/core-book3s: Avoid loading platform pmu driver during dump kernel Madhavan Srinivasan
2025-03-01 18:23 ` [PATCH v2 2/4] powerpc/perf/hv-24x7: Avoid loading hv-24x7 " Madhavan Srinivasan
2025-03-02 12:20   ` kernel test robot
2025-03-01 18:23 ` [PATCH v2 3/4] powerpc/perf/hv-gpci: Avoid loading hv-gpci pmu " Madhavan Srinivasan
2025-03-01 18:23 ` [PATCH v2 4/4] powerpc/perf/vpa-pmu: Avoid loading vpa-pmu driver " Madhavan Srinivasan
2025-03-02 10:13 ` [PATCH v2 1/4] powerpc/perf/core-book3s: Avoid loading platform pmu " kernel test robot
2025-03-05 15:29 ` kernel test robot [this message]

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=202503052346.eTbppObo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=llvm@lists.linux.dev \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).