]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fault: Fold mm_fault_error() into do_user_addr_fault()
authorAndy Lutomirski <luto@kernel.org>
Wed, 10 Feb 2021 02:33:35 +0000 (18:33 -0800)
committerBorislav Petkov <bp@suse.de>
Wed, 10 Feb 2021 13:10:07 +0000 (14:10 +0100)
commitec352711ceba890ea3a0c182c2d49c86c1a5e30e
treeddf3d589664e880bf3ebc81d6b91f82d65997caf
parentd24df8ecf9b6f81029f520ae7158a8670a28d70b
x86/fault: Fold mm_fault_error() into do_user_addr_fault()

mm_fault_error() is logically just the end of do_user_addr_fault().
Combine the functions.  This makes the code easier to read.

Most of the churn here is from renaming hw_error_code to error_code in
do_user_addr_fault().

This makes no difference at all to the generated code (objdump -dr) as
compared to changing noinline to __always_inline in the definition of
mm_fault_error().

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/dedc4d9c9b047e51ce38b991bd23971a28af4e7b.1612924255.git.luto@kernel.org
arch/x86/mm/fault.c