diff options
| author | Michael Ellerman <[email protected]> | 2023-11-30 22:44:33 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-12-01 21:15:33 +1100 |
| commit | f8d3555355653848082c351fa90775214fb8a4fa (patch) | |
| tree | d00d3b45c3ee2079d7afe6a1dc85d5b7ec580951 /tools/perf/scripts/python | |
| parent | d8c3f243d4db24675b653f0568bb65dae34e6455 (diff) | |
powerpc: Fix build error due to is_valid_bugaddr()
With CONFIG_GENERIC_BUG=n the build fails with:
arch/powerpc/kernel/traps.c:1442:5: error: no previous prototype for ‘is_valid_bugaddr’ [-Werror=missing-prototypes]
1442 | int is_valid_bugaddr(unsigned long addr)
| ^~~~~~~~~~~~~~~~
The prototype is only defined, and the function is only needed, when
CONFIG_GENERIC_BUG=y, so move the implementation under that.
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions