45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From e1fa2cda6a6cc2e5eb916638e0325b3d334adbe4 Mon Sep 17 00:00:00 2001
|
|
From: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
Date: Thu, 10 Jan 2019 10:21:59 +0800
|
|
Subject: [PATCH] cyclictest: fix_with_expected_identifier_in_latest
|
|
|
|
An error occurred during the build process:
|
|
src/cyclictest/cyclictest.c:1396:2: error: expected identifier or '(' before 'if'
|
|
if (option_affinity) {
|
|
|
|
The expected identifier "}" for "if (option_affinity){" occurs in another place.
|
|
|
|
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
Signed-off-by: Zhong Lu <zhongl.fnst@cn.fujitsu.com>
|
|
|
|
- Fixed the indentation of the bracket
|
|
- Fixed the indentation of the block where NUMA is not defined
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
src/cyclictest/cyclictest.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
|
|
index 188a202c5171..68b3836405c1 100644
|
|
--- a/src/cyclictest/cyclictest.c
|
|
+++ b/src/cyclictest/cyclictest.c
|
|
@@ -1386,11 +1386,11 @@ static void process_options (int argc, char *argv[], int max_cpus)
|
|
numa = 1;
|
|
num_threads = max_cpus;
|
|
setaffinity = AFFINITY_USEALL;
|
|
+ }
|
|
#else
|
|
- warn("cyclictest was not built with the numa option\n");
|
|
- numa = 0;
|
|
+ warn("cyclictest was not built with the numa option\n");
|
|
+ numa = 0;
|
|
#endif
|
|
- }
|
|
}
|
|
|
|
if (option_affinity) {
|
|
--
|
|
2.20.1
|
|
|