]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Make bad_area* helper functions
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:35 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:47 +0000 (16:06 +1000)
commitcc01de2cc49960fffbb9b2609a3d906d176c5599
tree6e4605c5b93b726c7a0fe2a6991f709852af2fce
parent4dc3d9ab85a8972c2ef129762cd0c3f752217f9a
powerpc/mm: Make bad_area* helper functions

Instead of goto labels, instead call those functions and return.

This gets us closer to x86 and allows us to shring do_page_fault()
even more.

The main difference with x86 is that those function return a value
which we then return from do_page_fault(). That value is our
return value from do_page_fault() which we use to generate
kernel faults.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c