Re: [Qemu-devel] [PATCH v2 10/13] queue.h: Add QLIST_FIX_HEAD_PTR()

2015-06-12 Thread Max Reitz
On 10.06.2015 15:47, Kevin Wolf wrote: If the head of a list has been moved to a different memory location, the le_prev link in the first list entry has to be fixed up. Provide a macro that implements this fixup. Signed-off-by: Kevin Wolf --- include/qemu/queue.h | 6 ++ 1 file changed,

Re: [Qemu-devel] [PATCH v2 10/13] queue.h: Add QLIST_FIX_HEAD_PTR()

2015-06-10 Thread Eric Blake
On 06/10/2015 07:47 AM, Kevin Wolf wrote: > If the head of a list has been moved to a different memory location, the > le_prev link in the first list entry has to be fixed up. Provide a macro > that implements this fixup. > > Signed-off-by: Kevin Wolf > --- > include/qemu/queue.h | 6 ++ > 1

[Qemu-devel] [PATCH v2 10/13] queue.h: Add QLIST_FIX_HEAD_PTR()

2015-06-10 Thread Kevin Wolf
If the head of a list has been moved to a different memory location, the le_prev link in the first list entry has to be fixed up. Provide a macro that implements this fixup. Signed-off-by: Kevin Wolf --- include/qemu/queue.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/qemu/