x86/traps: Introduce do_error_trap()
authorOleg Nesterov <oleg@redhat.com>
Wed, 7 May 2014 15:21:34 +0000 (17:21 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 14 May 2014 11:57:27 +0000 (13:57 +0200)
commitdff0796e53c29147c9bd1f5567a261dcf0e528bc
tree82eea728e7ac18b02824ead8f69c172a85124e5e
parent38cad57be9800e46c52a3612fb9d963eee4fd9c3
x86/traps: Introduce do_error_trap()

Move the common code from DO_ERROR() and DO_ERROR_INFO() into the new
helper, do_error_trap(). This simplifies define's and shaves 527 bytes
from traps.o.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/x86/kernel/traps.c