RE: [PATCH v4 08/10] selftests/resctrl Add Cache QoS Monitoring (CQM) selftest
From: Yu, Fenghua
Date: Wed Jan 02 2019 - 15:55:08 EST
> From: Moger, Babu [mailto:Babu.Moger@xxxxxxx]
> for (int i = 0; i < argc; i++) {
> ^
> resctrl_tests.c:39:56: note: previous declaration of 'i' was here
> int res, c, core_id = 1, span = 250, argc_new = argc, i, no_of_bits = 5;
> ^
> resctrl_tests.c:46:2: error: 'for' loop initial declarations are only allowed in
> C99 mode
> for (int i = 0; i < argc; i++) {
> ^
> resctrl_tests.c:46:2: note: use option -std=c99 or -std=gnu99 to compile your
> code
Sure. Will fix this.
Thanks.
-Fenghua