x86/fault: Remove sw_error_code
authorAndy Lutomirski <luto@kernel.org>
Wed, 21 Nov 2018 23:11:22 +0000 (15:11 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Nov 2018 08:22:59 +0000 (09:22 +0100)
commit0ed32f1aa66ee758e6c8164f549f7ff9d399a20e
tree502e38ef2ac0c53f0a9a3d78b5d7c35b3b377f57
parent1ad33f5aec20f53785dbad44c6fb3b204aefd921
x86/fault: Remove sw_error_code

All of the fault handling code now corrently checks user_mode(regs)
as needed, and nothing depends on the X86_PF_USER bit being munged.
Get rid of the sw_error code and use hw_error_code everywhere.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
Link: http://lkml.kernel.org/r/078f5b8ae6e8c79ff8ee7345b5c476c45003e5ac.1542841400.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/fault.c