]> 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)
commitf5b72ad61c16a5f529be946b554579f245cf3d9c
tree6e4605c5b93b726c7a0fe2a6991f709852af2fce
parentb18830b36894a5ac1780d4e5376e0af83287b286
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