mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
x86/mm: Convert unreachable() to BUG()
Commit2190966fbc
("x86: Convert unreachable() to BUG()") missed one. And after commit06e2474598
("objtool: Remove annotate_{,un}reachable()") the invalid use of unreachable() (rightfully) triggers warnings: vmlinux.o: warning: objtool: page_fault_oops() falls through to next function is_prefetch() Fixes:2190966fbc
("x86: Convert unreachable() to BUG()") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20241216093215.GD12338@noisy.programming.kicks-ass.net
This commit is contained in:
parent
c3cb6c158c
commit
41a1e97662
@ -678,7 +678,7 @@ page_fault_oops(struct pt_regs *regs, unsigned long error_code,
|
|||||||
ASM_CALL_ARG3,
|
ASM_CALL_ARG3,
|
||||||
, [arg1] "r" (regs), [arg2] "r" (address), [arg3] "r" (&info));
|
, [arg1] "r" (regs), [arg2] "r" (address), [arg3] "r" (&info));
|
||||||
|
|
||||||
unreachable();
|
BUG();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user