2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

mem/shmem: Fix typos for_each_shmem macro

Since we use _i as a counter in macro declaration
we should use it as a reference. This macro simply
happen to work now because of being called with
variable i declarated in the caller code.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2019-07-05 18:38:11 +03:00
committed by Andrei Vagin
parent 92717977cd
commit c01da212da

View File

@@ -43,8 +43,8 @@
#define SHMEM_HASH_SIZE 32
static struct hlist_head shmems_hash[SHMEM_HASH_SIZE];
#define for_each_shmem(_i, _si) \
for (i = 0; i < SHMEM_HASH_SIZE; i++) \
#define for_each_shmem(_i, _si) \
for (_i = 0; _i < SHMEM_HASH_SIZE; _i++) \
hlist_for_each_entry(_si, &shmems_hash[_i], h)
struct shmem_info {