[Skiboot] [PATCH 08/13] pci-quirk: Fix initiliser warning

Joel Stanley joel at jms.id.au
Wed May 2 18:37:48 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>
---
 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..ada314d2d54d 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}
+	{ }
 };
 
 void pci_handle_quirk(struct phb *phb, struct pci_device *pd)
-- 
2.17.0



More information about the Skiboot mailing list