[Qemu-devel] [PATCH v2] hw/vfio/platform: replace g_malloc0_n by g_new0

2015-06-11 Thread Eric Auger
g_malloc0_n() is introduced since glib-2.24 while QEMU currently requires glib-2.22. This may cause a link error on some distributions. Signed-off-by: Eric Auger eric.au...@linaro.org --- v1 - v2: - replace g_malloc0 by g_new0 --- hw/vfio/platform.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: replace g_malloc0_n by g_new0

2015-06-11 Thread Peter Maydell
On 11 June 2015 at 09:44, Eric Auger eric.au...@linaro.org wrote: g_malloc0_n() is introduced since glib-2.24 while QEMU currently requires glib-2.22. This may cause a link error on some distributions. Signed-off-by: Eric Auger eric.au...@linaro.org --- v1 - v2: - replace g_malloc0 by

Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: replace g_malloc0_n by g_new0

2015-06-11 Thread Alex Williamson
On Thu, 2015-06-11 at 14:00 +0100, Peter Maydell wrote: On 11 June 2015 at 09:44, Eric Auger eric.au...@linaro.org wrote: g_malloc0_n() is introduced since glib-2.24 while QEMU currently requires glib-2.22. This may cause a link error on some distributions. Signed-off-by: Eric Auger

Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: replace g_malloc0_n by g_new0

2015-06-11 Thread Gonglei
On 2015/6/11 21:00, Peter Maydell wrote: On 11 June 2015 at 09:44, Eric Auger eric.au...@linaro.org wrote: g_malloc0_n() is introduced since glib-2.24 while QEMU currently requires glib-2.22. This may cause a link error on some distributions. Signed-off-by: Eric Auger eric.au...@linaro.org

Re: [Qemu-devel] [PATCH v2] hw/vfio/platform: replace g_malloc0_n by g_new0

2015-06-11 Thread Peter Maydell
On 11 June 2015 at 14:21, Alex Williamson alex.william...@redhat.com wrote: On Thu, 2015-06-11 at 14:00 +0100, Peter Maydell wrote: On 11 June 2015 at 09:44, Eric Auger eric.au...@linaro.org wrote: g_malloc0_n() is introduced since glib-2.24 while QEMU currently requires glib-2.22. This may