diff options
author | Mark Brown <broonie@kernel.org> | 2014-09-16 18:42:33 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-09-25 16:32:48 +0200 |
commit | a9ae04c9faeff1ad617e4f4492af3143d8c5ad9b (patch) | |
tree | 62653998e9b5f2519ab235c2db8463b2ab30e2de /arch/arm64/kernel/kgdb.c | |
parent | arm64: debug: don't re-enable debug exceptions on return from el1_dbg (diff) | |
download | linux-a9ae04c9faeff1ad617e4f4492af3143d8c5ad9b.tar.xz linux-a9ae04c9faeff1ad617e4f4492af3143d8c5ad9b.zip |
arm64: insn: Add return statements after BUG_ON()
Following a recent series of enhancements to the insn code the ARMv8
allnoconfig build has been generating a large number of warnings in the
form of:
arch/arm64/kernel/insn.c:689:8: warning: 'insn' may be used uninitialized in this function [-Wmaybe-uninitialized]
This is because BUG() and related macros can be compiled out so we get
execution paths which normally result in a panic compiling out to noops
instead.
I wasn't able to immediately identify a sensible return value to use in
these cases so just return AARCH64_BREAK_FAULT - this is all "should
never happen" code so hopefully it never has a practical impact.
Signed-off-by: Mark Brown <broonie@kernel.org>
[catalin.marinas@arm.com: AARCH64_BREAK_FAULT definition contributed by Daniel Borkmann]
[catalin.marinas@arm.com: replace return 0 with AARCH64_BREAK_FAULT]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/kgdb.c')
0 files changed, 0 insertions, 0 deletions