aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2015-10-12 20:32:12 -0400
committerIngo Molnar <mingo@kernel.org>2015-10-14 10:56:28 -0400
commit893a3ec27e1dae62a904f78d53244001979748a6 (patch)
tree35e8a5a3fd115fb585db1005f6c165abbca636d6
parent374a3a3916a70fc6236bc2b8f8ac02548a128a54 (diff)
selftests/x86: Style fixes for the 'unwind_vdso' test
Checkpatch is really quite bad for user code like this, but it caught two legit style issues. Reported-by: Borislav Petkov <bp@suse.de> Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/3335040bdd40d2bca4b1a28a3f8b165361c801b7.1444696194.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--tools/testing/selftests/x86/unwind_vdso.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/x86/unwind_vdso.c b/tools/testing/selftests/x86/unwind_vdso.c
index 5992ff24ab83..00a26a82fa98 100644
--- a/tools/testing/selftests/x86/unwind_vdso.c
+++ b/tools/testing/selftests/x86/unwind_vdso.c
@@ -134,7 +134,7 @@ _Unwind_Reason_Code trace_fn(struct _Unwind_Context * ctx, void *opaque)
134 134
135static void sigtrap(int sig, siginfo_t *info, void *ctx_void) 135static void sigtrap(int sig, siginfo_t *info, void *ctx_void)
136{ 136{
137 ucontext_t *ctx = (ucontext_t*)ctx_void; 137 ucontext_t *ctx = (ucontext_t *)ctx_void;
138 struct unwind_state state; 138 struct unwind_state state;
139 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; 139 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP];
140 140
@@ -192,7 +192,9 @@ int main()
192 * affected by libc/19006 (https://sourceware.org/PR19006). 192 * affected by libc/19006 (https://sourceware.org/PR19006).
193 */ 193 */
194 printf("[WARN]\tsyscall(2) didn't enter AT_SYSINFO\n"); 194 printf("[WARN]\tsyscall(2) didn't enter AT_SYSINFO\n");
195 } if (get_eflags() & X86_EFLAGS_TF) { 195 }
196
197 if (get_eflags() & X86_EFLAGS_TF) {
196 printf("[FAIL]\tTF is still set\n"); 198 printf("[FAIL]\tTF is still set\n");
197 nerrs++; 199 nerrs++;
198 } 200 }