Skip to contentSkip to conversation

cyclictest: fix_with_expected_identifier_in_latest

PATCH New John Kacur 1 participant 1 message Jan 11, 2019

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 cyclictest: fix_with_expected_identifier_in_latest

From: Li Xiaoming <[email protected]>

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.

- Fixed the indentation of the bracket
- Fixed the indentation of the block where NUMA is not defined

---
 src/cyclictest/cyclictest.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/cyclictest/cyclictest.c +3 -3
index 188a202c5171..68b3836405c1 100644
@@ -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) {
Signature · 1 line
2.20.1