diff options
Diffstat (limited to 'meta-oe/recipes-test/stress-ng/stress-ng/0003-stress-fcntl.c-fix-syntax-errors.patch')
-rw-r--r-- | meta-oe/recipes-test/stress-ng/stress-ng/0003-stress-fcntl.c-fix-syntax-errors.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-test/stress-ng/stress-ng/0003-stress-fcntl.c-fix-syntax-errors.patch b/meta-oe/recipes-test/stress-ng/stress-ng/0003-stress-fcntl.c-fix-syntax-errors.patch new file mode 100644 index 000000000..4b6a9b391 --- /dev/null +++ b/meta-oe/recipes-test/stress-ng/stress-ng/0003-stress-fcntl.c-fix-syntax-errors.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 8537dcafb12be4d986b571f1e1d9f3ceecdc8e63 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Orling <timothy.t.orling@linux.intel.com> | ||
3 | Date: Sun, 7 Jan 2018 21:29:12 -0800 | ||
4 | Subject: [PATCH] stress-fcntl.c: fix syntax errors | ||
5 | |||
6 | Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> | ||
7 | |||
8 | Upstream-status: Accepted | ||
9 | (commit 61d93d6857256cd49df6a6302caf6e7bb69b0f46) | ||
10 | --- | ||
11 | stress-fcntl.c | 6 +++--- | ||
12 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/stress-fcntl.c b/stress-fcntl.c | ||
15 | index 7c15d28..b7eade2 100644 | ||
16 | --- a/stress-fcntl.c | ||
17 | +++ b/stress-fcntl.c | ||
18 | @@ -173,7 +173,7 @@ static int do_fcntl(const args_t *args, const int fd) | ||
19 | owner.pid = getpgrp(); | ||
20 | ret = fcntl(fd, F_SETOWN_EX, &owner); | ||
21 | check_return(args, ret, "F_SETOWN_EX, F_OWNER_PGRP"); | ||
22 | -#else if defined(HAVE_GETPGRP) && defined(F_OWNER_GID) | ||
23 | +#elif defined(HAVE_GETPGRP) && defined(F_OWNER_GID) | ||
24 | owner.type = F_OWNER_GID; | ||
25 | owner.pid = getpgrp(); | ||
26 | ret = fcntl(fd, F_SETOWN_EX, &owner); | ||
27 | @@ -202,7 +202,7 @@ static int do_fcntl(const args_t *args, const int fd) | ||
28 | owner.type = F_OWNER_PGRP; | ||
29 | ret = fcntl(fd, F_GETOWN_EX, &owner); | ||
30 | check_return(args, ret, "F_GETOWN_EX, F_OWNER_PGRP"); | ||
31 | -#ele if defined(F_OWNER_GID) | ||
32 | +#elif defined(F_OWNER_GID) | ||
33 | owner.type = F_OWNER_GID; | ||
34 | ret = fcntl(fd, F_GETOWN_EX, &owner); | ||
35 | check_return(args, ret, "F_GETOWN_EX, F_OWNER_GID"); | ||
36 | @@ -436,7 +436,7 @@ ofd_lock_abort: { /* Nowt */ } | ||
37 | #endif | ||
38 | }; | ||
39 | |||
40 | - ret = fcntl(fd, F_GET_FILE_RW_HINT, &hint) | ||
41 | + ret = fcntl(fd, F_GET_FILE_RW_HINT, &hint); | ||
42 | if (ret == 0) { | ||
43 | for (i = 0; i < SIZEOF_ARRAY(hints); i++) { | ||
44 | hint = hints[i]; | ||
45 | -- | ||
46 | 2.14.3 | ||
47 | |||