Re: [PATCH 1/3] hw/cxl/cxl-cdat: Fix type of buf in ct3_load_cdat()

2024-03-04 Thread Jonathan Cameron via
On Mon, 4 Mar 2024 11:44:04 +0100 Thomas Huth wrote: > When setting GLIB_VERSION_MAX_ALLOWED to GLIB_VERSION_2_58 or higher > (which we'll certainly do in the not too distant future), glib adds > type safety checks to the g_steal_pointer() macro. This trigger an > error in the ct3_load_cdat()

[PATCH 1/3] hw/cxl/cxl-cdat: Fix type of buf in ct3_load_cdat()

2024-03-04 Thread Thomas Huth
When setting GLIB_VERSION_MAX_ALLOWED to GLIB_VERSION_2_58 or higher (which we'll certainly do in the not too distant future), glib adds type safety checks to the g_steal_pointer() macro. This trigger an error in the ct3_load_cdat() function: The local char *buf variable is assigned to uint8_t