From: Oleg Nesterov Date: Wed, 7 May 2014 15:59:39 +0000 (+0200) Subject: x86/traps: Introduce fill_trap_info(), simplify DO_ERROR_INFO() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~14^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=958d3d729802f7d741cbe8400e69b89baae580ee;p=pandora-kernel.git x86/traps: Introduce fill_trap_info(), simplify DO_ERROR_INFO() Extract the fill-siginfo code from DO_ERROR_INFO() into the new helper, fill_trap_info(). It can calculate si_code and si_addr looking at trapnr, so we can remove these arguments from DO_ERROR_INFO() and simplify the source code. The generated code is the same, __builtin_constant_p(trapnr) == T. Signed-off-by: Oleg Nesterov --- Reading git-diff-tree failed