x86/traps: Shift fill_trap_info() from DO_ERROR_INFO() to do_error_trap()
authorOleg Nesterov <oleg@redhat.com>
Thu, 8 May 2014 18:04:11 +0000 (20:04 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 14 May 2014 11:57:27 +0000 (13:57 +0200)
commit1c326c4dfe182a1c4c1e39f2c00f04c380d11692
tree0541c1d8679ceeb746572f0ac799a0003d46b5a6
parent958d3d729802f7d741cbe8400e69b89baae580ee
x86/traps: Shift fill_trap_info() from DO_ERROR_INFO() to do_error_trap()

Move the callsite of fill_trap_info() into do_error_trap() and remove
the "siginfo_t *info" argument.

This obviously breaks DO_ERROR() which passed info == NULL, we simply
change fill_trap_info() to return "siginfo_t *" and add the "default"
case which returns SEND_SIG_PRIV.

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