aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiao Yang <xiaox.yang@intel.com>2019-11-29 16:55:23 +0800
committerFengguang Wu <fengguang.wu@intel.com>2019-11-29 19:06:40 +0800
commit95081d4aeff089ff2891ae5e1334e475a634bc53 (patch)
treec478d73f06fbd981f1950b7ac47755d963fdb96f
parent4b12da9f8a403ea5a31f578dc90805e60bf8dcd5 (diff)
downloadvm-scalability-95081d4aeff089ff2891ae5e1334e475a634bc53.tar.gz
usemem.c: Add missing opt_repeat
Fix the following compiler error: ---------------------------------------- usemem.c:711:17: error: too many arguments to function ‘do_rw_once’ rw_bytes += do_rw_once(ptrs[i], lens[i], &rand_data, 1, &rep, opt_repeat); ^~~~~~~~~~ ... usemem.c:763:16: error: too many arguments to function ‘do_rw_once’ unit_bytes = do_rw_once(buffer, opt_bytes, &rand_data, 1, NULL, 0); ^~~~~~~~~~ usemem.c:463:22: note: declared here static unsigned long do_rw_once(unsigned long *p, unsigned long bytes, ^~~~~~~~~~ ---------------------------------------- Fixes: 4b12da9("usemem: rename reps to opt_repeat") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Xiao Yang <xiaox.yang@intel.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rw-r--r--usemem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usemem.c b/usemem.c
index 9932e1d..85dbdc5 100644
--- a/usemem.c
+++ b/usemem.c
@@ -462,7 +462,7 @@ void delay(unsigned long delay, unsigned long *p, unsigned long idx, int read)
static unsigned long do_rw_once(unsigned long *p, unsigned long bytes,
struct drand48_data *rand_data, int read,
- int *rep)
+ int *rep, int opt_repeat)
{
unsigned long i;
unsigned long m = bytes / sizeof(*p);
@@ -556,7 +556,7 @@ unsigned long do_unit(unsigned long bytes, struct drand48_data *rand_data,
fflush(stdout);
}
- rw_bytes += do_rw_once(p, bytes, rand_data, opt_readonly, &rep);
+ rw_bytes += do_rw_once(p, bytes, rand_data, opt_readonly, &rep, opt_repeat);
if (msync_mode) {
if ((msync(p, bytes, msync_mode)) == -1) {