[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 02/13] hw/rdma/vmw/pvrdma_cmd: Use correct struct in query_por
|
From: |
Peter Maydell |
|
Subject: |
Re: [PULL 02/13] hw/rdma/vmw/pvrdma_cmd: Use correct struct in query_port() |
|
Date: |
Thu, 19 Oct 2023 15:41:15 +0100 |
On Wed, 11 Oct 2023 at 17:29, Thomas Huth <thuth@redhat.com> wrote:
>
> On 11/10/2023 17.38, Stefan Hajnoczi wrote:
> > The following CI failure has occurred:
> >
> > ../hw/rdma/vmw/pvrdma_cmd.c:144:59: error: implicit conversion from
> > enumeration type 'enum ibv_port_state' to different enumeration type
> > 'enum pvrdma_port_state' [-Werror,-Wenum-conversion]
> > resp->attrs.state = dev->func0->device_active ? attrs.state :
> > ~ ~~~~~~^~~~~
> > ../hw/rdma/vmw/pvrdma_cmd.c:146:33: error: implicit conversion from
> > enumeration type 'enum ibv_mtu' to different enumeration type 'enum
> > pvrdma_mtu' [-Werror,-Wenum-conversion]
> > resp->attrs.max_mtu = attrs.max_mtu;
> > ~ ~~~~~~^~~~~~~
> > ../hw/rdma/vmw/pvrdma_cmd.c:147:36: error: implicit conversion from
> > enumeration type 'enum ibv_mtu' to different enumeration type 'enum
> > pvrdma_mtu' [-Werror,-Wenum-conversion]
> > resp->attrs.active_mtu = attrs.active_mtu;
> > ~ ~~~~~~^~~~~~~~~~
> >
> > https://gitlab.com/qemu-project/qemu/-/jobs/5270666420
> >
> > Please take a look.
>
> That pvrdma patch unfortunately does not work with Clang, see also:
>
>
> 781330fc-85b3-4ef1-8f07-1cc5fc5e4ad2@redhat.com/T/#t">https://lore.kernel.org/qemu-devel/781330fc-85b3-4ef1-8f07-1cc5fc5e4ad2@redhat.com/T/#t
Explicitly casting to the new enum type is OK and fixes the clang
warnings; I'll send out a v2 of the patch in a moment.
thanks
-- PMM
- [PULL 00/13] Trivial patches for 2023-10-11, Michael Tokarev, 2023/10/11
- [PULL 04/13] MAINTAINERS: Add g364fb and ds1225y to the Jazz section, Michael Tokarev, 2023/10/11
- [PULL 05/13] MAINTAINERS: Add unowned RISC-V related files to the right sections, Michael Tokarev, 2023/10/11
- [PULL 06/13] MAINTAINERS: Add include folder to the hw/char/ section, Michael Tokarev, 2023/10/11
- [PULL 03/13] Fix compilation when UFFDIO_REGISTER is not set., Michael Tokarev, 2023/10/11
- [PULL 07/13] MAINTAINERS: Add the CI-related doc files to the CI section, Michael Tokarev, 2023/10/11
- [PULL 09/13] MAINTAINERS: Add section for overall sensors, Michael Tokarev, 2023/10/11
- [PULL 10/13] MAINTAINERS: Add some unowned files to the SBSA-REF section, Michael Tokarev, 2023/10/11
- [PULL 11/13] roms: use PYTHON to invoke python, Michael Tokarev, 2023/10/11
- [PULL 08/13] MAINTAINERS: add standard-headers to Hosts/LINUX, Michael Tokarev, 2023/10/11
- [PULL 12/13] scripts/xml-preprocess: Make sure this script is invoked via the right Python, Michael Tokarev, 2023/10/11