[Skiboot] [PATCH v2 09/11] pci-quirk: Fix initiliser warning
Joel Stanley
joel at jms.id.au
Fri May 4 12:10:34 AEST 2018
core/pci-quirk.c:70:7: warning: missing field 'vendor_id' initializer
[-Wmissing-field-initializers]
{NULL}
^
Instead use an empty initaliser, as this is what the kernel does.
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
v2:
Older gcc such as 4.8 don't like the empty initialiser, so make it
explicit instead
---
core/pci-quirk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/pci-quirk.c b/core/pci-quirk.c
index 0153bdb8435b..04cbf8e2cfd0 100644
--- a/core/pci-quirk.c
+++ b/core/pci-quirk.c
@@ -67,7 +67,7 @@ static void quirk_astbmc_vga(struct phb *phb __unused,
static const struct pci_quirk quirk_table[] = {
/* ASPEED 2400 VGA device */
{ &quirk_astbmc_vga, 0x1a03, 0x2000 },
- {NULL}
+ { NULL, 0, 0 }
};
void pci_handle_quirk(struct phb *phb, struct pci_device *pd)
--
2.17.0
More information about the Skiboot
mailing list