dma/idxd: fix build on Windows
authorDavid Marchand <david.marchand@redhat.com>
Sat, 23 Oct 2021 06:29:34 +0000 (08:29 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Sat, 23 Oct 2021 06:52:25 +0000 (08:52 +0200)
Windows compilation gives us a splat:
In file included from ../drivers/dma/idxd/idxd_pci.c:10:
In file included from ..\drivers\dma\idxd/idxd_internal.h:11:
..\drivers\dma\idxd/idxd_hw_defs.h:46:21: error: expected member name or
 ';' after declaration specifiers
        uint16_t __reserved[13];
        ~~~~~~~~           ^
1 error generated.

Ironically, __reserved is probably a reserved token.
Some drivers that build fine on Windows have structs with a "reserved"
field, let's go with this.

Fixes: 82147042d062 ("dma/idxd: add datapath structures")

Signed-off-by: David Marchand <david.marchand@redhat.com>
drivers/dma/idxd/idxd_hw_defs.h

index 55ca9f7..2a219c1 100644 (file)
@@ -43,7 +43,7 @@ struct idxd_hw_desc {
        uint16_t intr_handle; /* completion interrupt handle */
 
        /* remaining 26 bytes are reserved */
-       uint16_t __reserved[13];
+       uint16_t reserved[13];
 } __rte_aligned(64);
 
 #define IDXD_COMP_STATUS_INCOMPLETE        0