There's an environment that caused the following build error. Include "debug.h" (under util directory) to fix it. arch/x86/tests/topdown.c: In function 'event_cb': arch/x86/tests/topdown.c:53:25: error: implicit declaration of function 'pr_debug' [-Werror=implicit-function-declaration] 53 | pr_debug("Broken topdown information for '%s'\n", evsel__name(evsel)); | ^~~~~~~~ cc1: all warnings being treated as errors
Unified · Split
| @@ -1,6 +1,7 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | #include "arch-tests.h" | 2 | #include "arch-tests.h" |
| 3 | #include "../util/topdown.h" | 3 | #include "../util/topdown.h" |
| 4 | #include "debug.h" | ||
| 4 | #include "evlist.h" | 5 | #include "evlist.h" |
| 5 | #include "parse-events.h" | 6 | #include "parse-events.h" |
| 6 | #include "pmu.h" | 7 | #include "pmu.h" |