struct cds_hlist_node node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
struct cds_hlist_node node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
struct cds_hlist_node node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_HLIST_HEAD(mylist); /* Defines an empty hlist head */
struct cds_lfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_lfs_stack mystack; /* Stack */
struct cds_lfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_lfs_stack mystack; /* Stack */
struct cds_lfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_lfs_stack mystack; /* Stack */
struct cds_list_head node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
struct cds_list_head node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
struct cds_list_head node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
struct cds_list_head node; /* Linked-list chaining */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
CDS_LIST_HEAD(mylist); /* Defines an empty list head */
struct cds_lfht_node node; /* Chaining in hash table */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
struct cds_lfht *ht; /* Hash table */
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
struct cds_lfht *ht; /* Hash table */
return *key == node->value;
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
struct cds_lfht *ht; /* Hash table */
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
int remove_values[] = { 42, 36, 24, 123, };
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
struct cds_lfht *ht; /* Hash table */
return *key == node->value;
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
int lookup_values[] = { 42, 200, 36, };
return *key == node->value;
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 42, 36, 24, }; /* 42 is duplicated */
int lookup_values[] = { 42, 200, 36, };
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_lfq_queue_rcu myqueue; /* Queue */
struct cds_lfq_node_rcu node; /* Chaining in queue */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_lfq_queue_rcu myqueue; /* Queue */
return 0;
}
-int main(int argc, char **argv)
+int main(void)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
free(node);
}
-int main(int argc, char **argv)
+int main(void)
{
uint64_t values[] = { 42, 36, 24, };
unsigned int i;
struct cds_wfcq_node node; /* Chaining in queue */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_wfcq_head myqueue_head; /* Queue head */
struct cds_wfcq_node node; /* Chaining in queue */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_wfcq_head myqueue_head; /* Queue head */
printf("\n");
}
-int main(int argc, char **argv)
+int main(void)
{
int values_A[] = { -5, 42, 36, 24, };
int values_B[] = { 200, 300, 400, };
struct cds_wfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_wfs_stack mystack; /* Stack */
struct cds_wfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_wfs_stack mystack; /* Stack */
struct cds_wfs_node node; /* Chaining in stack */
};
-int main(int argc, char **argv)
+int main(void)
{
int values[] = { -5, 42, 36, 24, };
struct cds_wfs_stack mystack; /* Stack */
* (detection of memory corruption).
*/
static inline
-void cds_lfht_node_init(struct cds_lfht_node *node)
+void cds_lfht_node_init(struct cds_lfht_node *node __attribute__((unused)))
{
}
* cds_lfs_node_init: initialize lock-free stack node.
*/
static inline
-void _cds_lfs_node_init(struct cds_lfs_node *node)
+void _cds_lfs_node_init(struct cds_lfs_node *node __attribute__((unused)))
{
}
#endif
static inline
-void _cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node)
+void _cds_lfs_node_init_rcu(struct cds_lfs_node_rcu *node __attribute__((unused)))
{
}
* cds_wfcq_init().
*/
static inline void _cds_wfcq_destroy(struct cds_wfcq_head *head,
- struct cds_wfcq_tail *tail)
+ struct cds_wfcq_tail *tail __attribute__((unused)))
{
int ret = pthread_mutex_destroy(&head->lock);
assert(!ret);
}
static inline void _cds_wfcq_dequeue_lock(struct cds_wfcq_head *head,
- struct cds_wfcq_tail *tail)
+ struct cds_wfcq_tail *tail __attribute__((unused)))
{
int ret;
}
static inline void _cds_wfcq_dequeue_unlock(struct cds_wfcq_head *head,
- struct cds_wfcq_tail *tail)
+ struct cds_wfcq_tail *tail __attribute__((unused)))
{
int ret;
}
static inline struct cds_wfcq_node *
-___cds_wfcq_next(cds_wfcq_head_ptr_t head,
+___cds_wfcq_next(cds_wfcq_head_ptr_t head __attribute__((unused)),
struct cds_wfcq_tail *tail,
struct cds_wfcq_node *node,
int blocking)
#else
static
-void cds_lfht_iter_debug_set_ht(struct cds_lfht *ht, struct cds_lfht_iter *iter)
+void cds_lfht_iter_debug_set_ht(struct cds_lfht *ht __attribute__((unused)),
+ struct cds_lfht_iter *iter __attribute__((unused)))
{
}
* For 32-bit architectures, use the order allocator.
*/
static
-const struct cds_lfht_mm_type *get_mm_type(unsigned long max_nr_buckets)
+const struct cds_lfht_mm_type *get_mm_type(
+ unsigned long max_nr_buckets __attribute__((unused)))
{
return &cds_lfht_mm_order;
}
iter->next = next;
}
-void cds_lfht_next_duplicate(struct cds_lfht *ht, cds_lfht_match_fct match,
+void cds_lfht_next_duplicate(struct cds_lfht *ht __attribute__((unused)),
+ cds_lfht_match_fct match,
const void *key, struct cds_lfht_iter *iter)
{
struct cds_lfht_node *node, *next;
iter->next = next;
}
-void cds_lfht_next(struct cds_lfht *ht, struct cds_lfht_iter *iter)
+void cds_lfht_next(struct cds_lfht *ht __attribute__((unused)),
+ struct cds_lfht_iter *iter)
{
struct cds_lfht_node *node, *next;
__cds_lfht_resize_lazy_launch(ht);
}
-static void cds_lfht_before_fork(void *priv)
+static void cds_lfht_before_fork(void *priv __attribute__((unused)))
{
if (cds_lfht_workqueue_atfork_nesting++)
return;
urcu_workqueue_pause_worker(cds_lfht_workqueue);
}
-static void cds_lfht_after_fork_parent(void *priv)
+static void cds_lfht_after_fork_parent(void *priv __attribute__((unused)))
{
if (--cds_lfht_workqueue_atfork_nesting)
return;
mutex_unlock(&cds_lfht_fork_mutex);
}
-static void cds_lfht_after_fork_child(void *priv)
+static void cds_lfht_after_fork_child(void *priv __attribute__((unused)))
{
if (--cds_lfht_workqueue_atfork_nesting)
return;
* disturb the application. The SIGRCU signal needs to be unblocked for
* the urcu-signal flavor.
*/
-static void cds_lfht_worker_init(struct urcu_workqueue *workqueue,
- void *priv)
+static void cds_lfht_worker_init(
+ struct urcu_workqueue *workqueue __attribute__((unused)),
+ void *priv __attribute__((unused)))
{
int ret;
sigset_t mask;
URCU_ATTR_ALIAS(urcu_stringify(urcu_register_rculfhash_atfork))
void alias_urcu_register_rculfhash_atfork();
-void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork)
+void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork __attribute__((unused)))
{
call_rcu_lock(&call_rcu_mutex);
if (--registered_rculfhash_atfork_refcount)
wake_up_defer();
}
-static void *thr_defer(void *args)
+static void *thr_defer(void *args __attribute__((unused)))
{
for (;;) {
/*
#endif
#ifdef RCU_SIGNAL
-static void sigrcu_handler(int signo, siginfo_t *siginfo, void *context)
+static void sigrcu_handler(int signo __attribute__((unused)),
+ siginfo_t *siginfo __attribute__((unused)),
+ void *context __attribute__((unused)))
{
/*
* Executing this cmm_smp_mb() is the only purpose of this signal handler.
#define LOOPS 1048576
#define TESTS 10
-int main(int argc, char **argv)
+int main(void)
{
unsigned long i;
caa_cycles_t time1, time2;
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
cmm_smp_mb();
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
cmm_smp_mb();
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
cmm_smp_mb();
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
-static void test_cb2(void *data)
+static void test_cb2(void *data __attribute__((unused)))
{
}
-static void test_cb1(void *data)
+static void test_cb1(void *data __attribute__((unused)))
{
}
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'b':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
reclaim_batch = atol(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void *thr_count(void *arg)
+void *thr_count(void *arg __attribute__((unused)))
{
printf_verbose("thread_begin %s, tid %lu\n",
"counter", urcu_get_thread_id());
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
long long nr_leaked;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'h':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'm':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'n':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
break;
case 'B':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
mainret = 1;
goto end;
}
static enum urcu_hash_addremove addremove; /* 1: add, -1 remove, 0: random */
-void test_hash_rw_sigusr1_handler(int signo)
+void test_hash_rw_sigusr1_handler(int signo __attribute__((unused)))
{
switch (addremove) {
case AR_ADD:
}
}
-void test_hash_rw_sigusr2_handler(int signo)
+void test_hash_rw_sigusr2_handler(int signo __attribute__((unused)))
{
char msg[1] = { 0x42 };
ssize_t ret;
static enum urcu_hash_addremove addremove; /* 1: add, -1 remove, 0: random */
-void test_hash_unique_sigusr1_handler(int signo)
+void test_hash_unique_sigusr1_handler(int signo __attribute__((unused)))
{
switch (addremove) {
case AR_ADD:
}
}
-void test_hash_unique_sigusr2_handler(int signo)
+void test_hash_unique_sigusr2_handler(int signo __attribute__((unused)))
{
char msg[1] = { 0x42 };
ssize_t ret;
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
} while (snode);
}
-static void show_usage(int argc, char **argv)
+static void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_readers nr_writers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_readers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_writers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
break;
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'b':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
reclaim_batch = atol(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
break;
case 'e':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wduration = atol(argv[++i]);
} while (node);
}
-static void show_usage(int argc, char **argv)
+static void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
}
static
-void show_usage(int argc, char **argv)
+void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
} while (node);
}
-static void show_usage(int argc, char **argv)
+static void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
unsigned int i_thr;
if (argc < 4) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
break;
case 'c':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(argc, argv);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
{
}
-static inline void rcu_debug_yield_enable(unsigned int flags)
+static inline void rcu_debug_yield_enable(
+ unsigned int flags __attribute__((unused)))
{
}
-static inline void rcu_debug_yield_disable(unsigned int flags)
+static inline void rcu_debug_yield_disable(
+ unsigned int flags __attribute__((unused)))
{
}
}
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();
}
}
-int main(int argc, char **argv)
+int main(int argc __attribute__((unused)), char **argv)
{
unsigned int i;
\
} while (0)
-int main(int argc, char **argv)
+int main(void)
{
int nr_run = 2;
#ifdef UATOMIC_HAS_ATOMIC_BYTE
#include "tap.h"
-int main(int argc, char **argv)
+int main(void)
{
plan_tests(5);
return 0;
}
-int main(int argc, char **argv)
+int main(void)
{
plan_tests(5);