projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: explicitly mark unused parameters (-Wunused-parameter)
[userspace-rcu.git]
/
tests
/
regression
/
rcutorture.h
diff --git
a/tests/regression/rcutorture.h
b/tests/regression/rcutorture.h
index 46a673767ebd4d8ccc02063621a13f783149bfe9..0c5c8956e982245b5b1c4406f9455c2d72411b1d 100644
(file)
--- a/
tests/regression/rcutorture.h
+++ b/
tests/regression/rcutorture.h
@@
-160,7
+160,7
@@
void *rcu_read_perf_test(void *arg)
}
static
}
static
-void *rcu_update_perf_test(void *arg)
+void *rcu_update_perf_test(void *arg
__attribute__((unused))
)
{
long long n_updates_local = 0;
{
long long n_updates_local = 0;
@@
-300,7
+300,7
@@
DEFINE_PER_THREAD(long long [RCU_STRESS_PIPE_LEN + 1], rcu_stress_count);
int garbage = 0;
static
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;
{
int i;
int itercnt = 0;
@@
-344,7
+344,7
@@
static pthread_mutex_t call_rcu_test_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t call_rcu_test_cond = PTHREAD_COND_INITIALIZER;
static
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;
{
int ret;
@@
-372,7
+372,7
@@
void rcu_update_stress_test_rcu(struct rcu_head *head)
}
static
}
static
-void *rcu_update_stress_test(void *arg)
+void *rcu_update_stress_test(void *arg
__attribute__((unused))
)
{
int i;
struct rcu_stress *p;
{
int i;
struct rcu_stress *p;
@@
-446,7
+446,7
@@
void *rcu_update_stress_test(void *arg)
}
static
}
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;
{
if (callrcu_type == CALLRCU_PERTHREAD) {
struct call_rcu_data *crdp;
@@
-532,7
+532,7
@@
int stresstest(int nreaders)
*/
static
*/
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);
{
diag("Usage: %s nreaders [ perf | rperf | uperf | stress ] [ stride ] [ callrcu_global | callrcu_percpu | callrcu_perthread ]\n", argv[0]);
exit(-1);
@@
-557,7
+557,7
@@
int main(int argc, char *argv[])
} else if (strcmp(callrcu_str, "callrcu_perthread") == 0) {
callrcu_type = CALLRCU_PERTHREAD;
} else {
} else if (strcmp(callrcu_str, "callrcu_perthread") == 0) {
callrcu_type = CALLRCU_PERTHREAD;
} else {
- usage(arg
c, arg
v);
+ usage(argv);
goto end;
}
}
goto end;
}
}
@@
-587,7
+587,7
@@
int main(int argc, char *argv[])
if (argc > 1) {
if (strcmp(argv[1], "-h") == 0
|| strcmp(argv[1], "--help") == 0) {
if (argc > 1) {
if (strcmp(argv[1], "-h") == 0
|| strcmp(argv[1], "--help") == 0) {
- usage(arg
c, arg
v);
+ usage(argv);
goto end;
}
nreaders = strtoul(argv[1], NULL, 0);
goto end;
}
nreaders = strtoul(argv[1], NULL, 0);
@@
-616,9
+616,9
@@
int main(int argc, char *argv[])
"stresstest readers: %d, stride: %d",
nreaders, cpustride);
else
"stresstest readers: %d, stride: %d",
nreaders, cpustride);
else
- usage(arg
c, arg
v);
+ usage(argv);
} else {
} else {
- usage(arg
c, arg
v);
+ usage(argv);
}
end:
return exit_status();
}
end:
return exit_status();
This page took
0.024978 seconds
and
4
git commands to generate.