• Ingo Molnar's avatar
    x86/fpu/xstate: Use explicit parameter in xstate_fault() · b11ca7fb
    Ingo Molnar authored
    While looking at xstate.h it took me some time to realize that
    'xstate_fault' uses 'err' as a silent parameter. This is not
    obvious at the call site, at all.
    
    Make it an explicit macro argument, so that the syntactic
    connection is easier to see. Also explain xstate_fault()
    a bit.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    b11ca7fb
xstate.h 5.67 KB