]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf jevents: Suppress circular dependency warnings
authorJames Clark <james.clark@linaro.org>
Mon, 20 Oct 2025 16:08:28 +0000 (17:08 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 21 Oct 2025 04:11:49 +0000 (21:11 -0700)
commit29166bd0a41fe6bdcf0b2376ef57e358c8a1e988
tree3fe036a7d9b1b0d5a0ca2a4d39d5d99fbf8e0881
parent2ef335ead2338b0b317f17f7fe3503717cdc16b2
perf jevents: Suppress circular dependency warnings

When doing an in source build, $(OUTPUT) is empty so the rule has the
same input and output file. Suppress the warning by only adding the rule
when doing an out of source build. The same condition already exists for
the clean rule for json files.

This fixes the following warnings:

  make[3]: Circular pmu-events/arch/nds32/mapfile.csv <- pmu-events/arch/nds32/mapfile.csv dependency dropped.
  make[3]: Circular pmu-events/arch/powerpc/mapfile.csv <- pmu-events/arch/powerpc/mapfile.csv dependency dropped.
  ...

Signed-off-by: James Clark <james.clark@linaro.org>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/Build