Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf pmu: Reduce scope of perf_pmu_error()

Move declaration from header file to pmu.y and make static.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Gaosheng Cui <cuigaosheng1@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230823080828.1460376-5-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
6f2f6eaf cc5adb73

+3 -2
-1
tools/perf/util/pmu.h
··· 227 227 struct perf_pmu_info *info); 228 228 struct list_head *perf_pmu__alias(struct perf_pmu *pmu, 229 229 struct list_head *head_terms); 230 - void perf_pmu_error(struct list_head *list, char *name, void *scanner, char const *msg); 231 230 232 231 int perf_pmu__new_format(struct list_head *list, char *name, 233 232 int config, unsigned long *bits);
+3 -1
tools/perf/util/pmu.y
··· 21 21 YYABORT; \ 22 22 } while (0) 23 23 24 + static void perf_pmu_error(struct list_head *list, char *name, void *scanner, char const *msg); 25 + 24 26 static void perf_pmu__set_format(unsigned long *bits, long from, long to) 25 27 { 26 28 long b; ··· 95 93 96 94 %% 97 95 98 - void perf_pmu_error(struct list_head *list __maybe_unused, 96 + static void perf_pmu_error(struct list_head *list __maybe_unused, 99 97 char *name __maybe_unused, 100 98 void *scanner __maybe_unused, 101 99 char const *msg __maybe_unused)