Thread (11 messages) 11 messages, 4 authors, 2020-03-11

Re: [PATCH 2/4] selftests/ptrace: add test cases for dead-locks

From: Dmitry V. Levin <hidden>
Date: 2020-03-10 22:41:08
Also in: linux-api, linux-fsdevel, linux-mm, lkml, stable

On Tue, Mar 10, 2020 at 02:44:01PM +0100, Bernd Edlinger wrote:
This adds test cases for ptrace deadlocks.

Additionally fixes a compile problem in get_syscall_info.c,
observed with gcc-4.8.4:

get_syscall_info.c: In function 'get_syscall_info':
get_syscall_info.c:93:3: error: 'for' loop initial declarations are only
                                 allowed in C99 mode
   for (unsigned int i = 0; i < ARRAY_SIZE(args); ++i) {
   ^
get_syscall_info.c:93:3: note: use option -std=c99 or -std=gnu99 to compile
                               your code
[...]
quoted hunk ↗ jump to hunk
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -iquote../../../../include/uapi -Wall
+CFLAGS += -std=c99 -pthread -iquote../../../../include/uapi -Wall
Wouldn't it be better to choose -std=gnu99 over -std=c99?


-- 
ldv
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help