Loading include/qemu/qht.h +1 −1 Original line number Diff line number Diff line Loading @@ -211,7 +211,7 @@ void qht_iter_remove(struct qht *ht, qht_iter_bool_func_t func, void *userp); * When done with @stats, pass the struct to qht_statistics_destroy(). * Failing to do this will leak memory. */ void qht_statistics_init(struct qht *ht, struct qht_stats *stats); void qht_statistics_init(const struct qht *ht, struct qht_stats *stats); /** * qht_statistics_destroy - Destroy a &struct qht_stats Loading util/qht.c +4 −4 Original line number Diff line number Diff line Loading @@ -895,9 +895,9 @@ bool qht_resize(struct qht *ht, size_t n_elems) } /* pass @stats to qht_statistics_destroy() when done */ void qht_statistics_init(struct qht *ht, struct qht_stats *stats) void qht_statistics_init(const struct qht *ht, struct qht_stats *stats) { struct qht_map *map; const struct qht_map *map; int i; map = atomic_rcu_read(&ht->map); Loading @@ -914,8 +914,8 @@ void qht_statistics_init(struct qht *ht, struct qht_stats *stats) stats->head_buckets = map->n_buckets; for (i = 0; i < map->n_buckets; i++) { struct qht_bucket *head = &map->buckets[i]; struct qht_bucket *b; const struct qht_bucket *head = &map->buckets[i]; const struct qht_bucket *b; unsigned int version; size_t buckets; size_t entries; Loading Loading
include/qemu/qht.h +1 −1 Original line number Diff line number Diff line Loading @@ -211,7 +211,7 @@ void qht_iter_remove(struct qht *ht, qht_iter_bool_func_t func, void *userp); * When done with @stats, pass the struct to qht_statistics_destroy(). * Failing to do this will leak memory. */ void qht_statistics_init(struct qht *ht, struct qht_stats *stats); void qht_statistics_init(const struct qht *ht, struct qht_stats *stats); /** * qht_statistics_destroy - Destroy a &struct qht_stats Loading
util/qht.c +4 −4 Original line number Diff line number Diff line Loading @@ -895,9 +895,9 @@ bool qht_resize(struct qht *ht, size_t n_elems) } /* pass @stats to qht_statistics_destroy() when done */ void qht_statistics_init(struct qht *ht, struct qht_stats *stats) void qht_statistics_init(const struct qht *ht, struct qht_stats *stats) { struct qht_map *map; const struct qht_map *map; int i; map = atomic_rcu_read(&ht->map); Loading @@ -914,8 +914,8 @@ void qht_statistics_init(struct qht *ht, struct qht_stats *stats) stats->head_buckets = map->n_buckets; for (i = 0; i < map->n_buckets; i++) { struct qht_bucket *head = &map->buckets[i]; struct qht_bucket *b; const struct qht_bucket *head = &map->buckets[i]; const struct qht_bucket *b; unsigned int version; size_t buckets; size_t entries; Loading