]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Constify arch_decode_instruction()
authorIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2020 10:32:05 +0000 (12:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 23 Apr 2020 06:34:18 +0000 (08:34 +0200)
commit50bc85b592d7f5fb288c033cfa751e113bea1ab0
tree91292423dcd2b917c6e1c1a9e277e0bcf6ac834a
parente5d039f7ddfec2570c0dd867e3c4f330b40f52ec
objtool: Constify arch_decode_instruction()

Mostly straightforward constification, except that WARN_FUNC()
needs a writable pointer while we have read-only pointers,
so deflect this to WARN().

Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200422103205.61900-4-mingo@kernel.org
tools/objtool/arch.h
tools/objtool/arch/x86/decode.c