x86/pkeys/selftests: Fix protection keys write() warning
authorDave Hansen <[email protected]>
Sat, 11 Nov 2017 00:12:32 +0000 (16:12 -0800)
committerIngo Molnar <[email protected]>
Tue, 21 Nov 2017 08:34:52 +0000 (09:34 +0100)
commit7b659ee3e1fe0e8eb39730afb903c64e25490ec4
tree9649c9e18c9ac1726b29f2ae4f9c0f4b9446763c
parent91c49c2deb96ffc3c461eaae70219d89224076b7
x86/pkeys/selftests: Fix protection keys write() warning

write() is marked as having a must-check return value.  Check it and
abort if we fail to write an error message from a signal handler.

Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
tools/testing/selftests/x86/pkey-helpers.h