diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2023-11-30 22:44:33 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-01 21:15:33 +1100 |
commit | f8d3555355653848082c351fa90775214fb8a4fa (patch) | |
tree | d00d3b45c3ee2079d7afe6a1dc85d5b7ec580951 /drivers/of/platform.c | |
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 <mpe@ellerman.id.au>
Link: https://msgid.link/20231130114433.3053544-2-mpe@ellerman.id.au
Diffstat (limited to 'drivers/of/platform.c')
0 files changed, 0 insertions, 0 deletions