[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YdyaOw5Yz8jmEfOw@kernel.org>
Date: Mon, 10 Jan 2022 17:42:35 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Andi Kleen <ak@...ux.intel.com>, Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
John Garry <john.garry@...wei.com>,
Kajol Jain <kjain@...ux.ibm.com>,
"Paul A . Clarke" <pc@...ibm.com>,
Riccardo Mancini <rickyman7@...il.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Vineet Singh <vineet.singh@...el.com>,
James Clark <james.clark@....com>,
Mathieu Poirier <mathieu.poirier@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Mike Leach <mike.leach@...aro.org>,
Leo Yan <leo.yan@...aro.org>, coresight@...ts.linaro.org,
linux-arm-kernel@...ts.infradead.org, zhengjun.xing@...el.com,
eranian@...gle.com
Subject: Re: [PATCH v4 00/48] Refactor perf cpumap
Em Mon, Jan 10, 2022 at 05:40:12PM -0300, Arnaldo Carvalho de Melo escreveu:
> > I'm now making it go thru the container builds.
>
> Not a good start, checking:
>
> [perfbuilder@...e ~]$ time dm
> 1 50.25 almalinux:8 : FAIL clang version 12.0.1 (Red Hat 12.0.1-4.module_el8.5.0+1025+93159d6c)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
^
Interesting, it builds with gcc, not with clang:
+ make PYTHON=python3 ARCH= CROSS_COMPILE= EXTRA_CFLAGS= -C tools/perf O=/tmp/build/perf CC=clang
And it really isn't used anywhere in builtin-stat.c, will remove it
after figuring out when it stops being used.
- Arnaldo
> 1 error generated.
> 2 54.14 alpine:3.4 : FAIL clang version 3.8.0 (tags/RELEASE_380/final)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 3 39.78 alpine:3.5 : FAIL clang version 3.8.1 (tags/RELEASE_381/final)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 4 82.52 alpine:3.6 : FAIL clang version 4.0.0 (tags/RELEASE_400/final)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 5 113.61 alpine:3.7 : FAIL gcc version 6.4.0 (Alpine 6.4.0)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 6 119.02 alpine:3.8 : FAIL gcc version 6.4.0 (Alpine 6.4.0)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 7 64.55 alpine:3.9 : FAIL gcc version 8.3.0 (Alpine 8.3.0)
> builtin-stat.c:1499:31: error: unused function 'perf_env__get_cpu' [-Werror,-Wunused-function]
> static inline struct perf_cpu perf_env__get_cpu(void *data, struct perf_cpu_map *map, int idx)
> ^
> 1 error generated.
> 8: alpine:3.10
--
- Arnaldo
Powered by blists - more mailing lists