On Tue, Jul 15, 2025 at 10:25:48AM +0100, Mark Cave-Ayland wrote:

> Update the VFIOUserContainer declaration so that it is closer to our coding
> guidelines: remove the explicit typedef (this is already handled by the
> OBJECT_DECLARE_TYPE() macro) and add a blank line after the parent object.
> 
> Signed-off-by: Mark Cave-Ayland <mark.caveayl...@nutanix.com>
> ---
>  hw/vfio-user/container.h | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/vfio-user/container.h b/hw/vfio-user/container.h
> index 2bb1fa1343..d5d2275af7 100644
> --- a/hw/vfio-user/container.h
> +++ b/hw/vfio-user/container.h
> @@ -13,10 +13,11 @@
>  #include "hw/vfio-user/proxy.h"
>  
>  /* MMU container sub-class for vfio-user. */
> -typedef struct VFIOUserContainer {
> +struct VFIOUserContainer {
>      VFIOContainerBase bcontainer;
> +
>      VFIOUserProxy *proxy;
> -} VFIOUserContainer;
> +};
>  
>  OBJECT_DECLARE_SIMPLE_TYPE(VFIOUserContainer, VFIO_IOMMU_USER);
>  

Reviewed-by: John Levon <john.le...@nutanix.com>

Reply via email to