]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: message: fusion: Mark mpt_halt_firmware() __noreturn
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 12 Apr 2023 23:49:40 +0000 (16:49 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 14 Apr 2023 15:31:27 +0000 (17:31 +0200)
commit6e36a56a5f617262c0e8ae7e961487361c720b9e
tree7b6388508e9e3c6e7433c65b48bfff4562aec5ae
parent52668badd34b4b346f32c33a9bcba069a06c3caa
scsi: message: fusion: Mark mpt_halt_firmware() __noreturn

mpt_halt_firmware() doesn't return.  Mark it as such.

Fixes the following warnings:

  vmlinux.o: warning: objtool: mptscsih_abort+0x7f4: unreachable instruction
  vmlinux.o: warning: objtool: mptctl_timeout_expired+0x310: unreachable instruction

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Mark Rutland <mark.rutland@arm.com>
Debugged-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/d8129817423422355bf30e90dadc6764261b53e0.1681342859.git.jpoimboe@kernel.org
drivers/message/fusion/mptbase.c
drivers/message/fusion/mptbase.h
tools/objtool/check.c