qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH] bitmap: a typo of the example in comment


From: Chao Fan
Subject: [Qemu-trivial] [PATCH] bitmap: a typo of the example in comment
Date: Thu, 29 Dec 2016 19:00:26 +0800

*   DirtyMemoryBlocks *blocks =
*       atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]);

blocks is a pointer, so here should be "->" instead of "."

Signed-off-by: Chao Fan <address@hidden>
---
 include/exec/ram_addr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 54d7108..a60a693 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -59,7 +59,7 @@ static inline void *ramblock_ptr(RAMBlock *block, ram_addr_t 
offset)
  *       atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]);
  *
  *   ram_addr_t idx = (addr >> TARGET_PAGE_BITS) / DIRTY_MEMORY_BLOCK_SIZE;
- *   unsigned long *block = blocks.blocks[idx];
+ *   unsigned long *block = blocks->blocks[idx];
  *   ...access block bitmap...
  *
  *   rcu_read_unlock();
-- 
2.9.3






reply via email to

[Prev in Thread] Current Thread [Next in Thread]