tile: avoid a "label not used" warning in do_page_fault()
authorChris Metcalf <cmetcalf@ezchip.com>
Thu, 4 Jun 2015 17:55:50 +0000 (13:55 -0400)
committerChris Metcalf <cmetcalf@ezchip.com>
Thu, 4 Jun 2015 17:55:50 +0000 (13:55 -0400)
commit5316a64ce518f850afb0fca322b85b6dff3cb59f
treed78376c10e3f5da5b06395670f098ec3e08f4af0
parent9ae4d6bf228ec7f338e8220babb87ee4fae10429
tile: avoid a "label not used" warning in do_page_fault()

There are two different ifdef cases where the label is used,
but if neither is true, the label is unused and the compiler
generates a warning.

Refactor the code the way x86 does so that there is a
do_page_fault() that just does exception handling for
context tracking, and make __do_page_fault() a static inline
so that various cases can just return instead of doing a
jump to "done".

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/mm/fault.c