diff mbox series

[v2,09/11] pci-quirk: Fix initiliser warning

Message ID 20180504021036.17027-10-joel@jms.id.au
State Accepted
Headers show
Series Support building with clang | expand

Commit Message

Joel Stanley May 4, 2018, 2:10 a.m. UTC
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@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 mbox series

Patch

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)