linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf: arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: error: 'pmus' undeclared
@ 2023-06-06  6:49 Naresh Kamboju
  2023-06-06  7:37 ` Ravi Bangoria
  0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2023-06-06  6:49 UTC (permalink / raw)
  To: linux-perf-users, open list, lkft-triage
  Cc: Arnaldo Carvalho de Melo, Arnaldo Carvalho de Melo,
	ravi.bangoria, Peter Zijlstra

Following warnings and errors noticed while building perf x86_64,

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Build log:
---------
arch/x86/tests/amd-ibs-via-core-pmu.c: In function 'test__amd_ibs_via_core_pmu':
arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: error: 'pmus' undeclared
(first use in this function)
   47 |         if (list_empty(&pmus))
      |                         ^~~~
arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: note: each undeclared
identifier is reported only once for each function it appears in
arch/x86/tests/amd-ibs-via-core-pmu.c:48:17: error: implicit
declaration of function 'perf_pmu__scan'; did you mean
'perf_pmus__scan'? [-Werror=implicit-function-declaration]
   48 |                 perf_pmu__scan(NULL);
      |                 ^~~~~~~~~~~~~~
      |                 perf_pmus__scan
arch/x86/tests/amd-ibs-via-core-pmu.c:50:19: error: implicit
declaration of function 'perf_pmu__find'; did you mean
'perf_pmus__find'? [-Werror=implicit-function-declaration]
   50 |         ibs_pmu = perf_pmu__find("ibs_op");
      |                   ^~~~~~~~~~~~~~
      |                   perf_pmus__find
arch/x86/tests/amd-ibs-via-core-pmu.c:50:17: error: assignment to
'struct perf_pmu *' from 'int' makes pointer from integer without a
cast [-Werror=int-conversion]
   50 |         ibs_pmu = perf_pmu__find("ibs_op");
      |                 ^
cc1: all warnings being treated as errors

Links:
======
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230606/testrun/17346999/suite/build/test/gcc-11-lkftconfig-perf/log
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230606/testrun/17346999/suite/build/test/gcc-11-lkftconfig-perf/history/


--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: perf: arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: error: 'pmus' undeclared
  2023-06-06  6:49 perf: arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: error: 'pmus' undeclared Naresh Kamboju
@ 2023-06-06  7:37 ` Ravi Bangoria
  0 siblings, 0 replies; 2+ messages in thread
From: Ravi Bangoria @ 2023-06-06  7:37 UTC (permalink / raw)
  To: Naresh Kamboju, linux-perf-users, open list, lkft-triage
  Cc: Arnaldo Carvalho de Melo, Arnaldo Carvalho de Melo, Peter Zijlstra

On 06-Jun-23 12:19 PM, Naresh Kamboju wrote:
> Following warnings and errors noticed while building perf x86_64,
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Thanks. Here is the fix:

https://lore.kernel.org/lkml/20230603044650.286-1-ravi.bangoria@amd.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-06  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06  6:49 perf: arch/x86/tests/amd-ibs-via-core-pmu.c:47:25: error: 'pmus' undeclared Naresh Kamboju
2023-06-06  7:37 ` Ravi Bangoria

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).