}
static
-void *rcu_update_perf_test(void *arg)
+void *rcu_update_perf_test(void *arg __attribute__((unused)))
{
long long n_updates_local = 0;
int garbage = 0;
static
-void *rcu_read_stress_test(void *arg)
+void *rcu_read_stress_test(void *arg __attribute__((unused)))
{
int i;
int itercnt = 0;
static pthread_cond_t call_rcu_test_cond = PTHREAD_COND_INITIALIZER;
static
-void rcu_update_stress_test_rcu(struct rcu_head *head)
+void rcu_update_stress_test_rcu(struct rcu_head *head __attribute__((unused)))
{
int ret;
}
static
-void *rcu_update_stress_test(void *arg)
+void *rcu_update_stress_test(void *arg __attribute__((unused)))
{
int i;
struct rcu_stress *p;
}
static
-void *rcu_fake_update_stress_test(void *arg)
+void *rcu_fake_update_stress_test(void *arg __attribute__((unused)))
{
if (callrcu_type == CALLRCU_PERTHREAD) {
struct call_rcu_data *crdp;
*/
static
-void usage(int argc, char *argv[])
+void usage(char *argv[])
{
diag("Usage: %s nreaders [ perf | rperf | uperf | stress ] [ stride ] [ callrcu_global | callrcu_percpu | callrcu_perthread ]\n", argv[0]);
exit(-1);
} else if (strcmp(callrcu_str, "callrcu_perthread") == 0) {
callrcu_type = CALLRCU_PERTHREAD;
} else {
- usage(argc, argv);
+ usage(argv);
goto end;
}
}
if (argc > 1) {
if (strcmp(argv[1], "-h") == 0
|| strcmp(argv[1], "--help") == 0) {
- usage(argc, argv);
+ usage(argv);
goto end;
}
nreaders = strtoul(argv[1], NULL, 0);
"stresstest readers: %d, stride: %d",
nreaders, cpustride);
else
- usage(argc, argv);
+ usage(argv);
} else {
- usage(argc, argv);
+ usage(argv);
}
end:
return exit_status();