Message ID | 20170928064015.9583-1-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | phb4: make retry_whitelist static | expand |
Stewart Smith <stewart@linux.vnet.ibm.com> writes: > Silences sparse warning: > hw/phb4.c:XX:20: warning: symbol 'retry_whitelist' was not declared. Should it be static? > > Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> > --- > hw/phb4.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Merged to master as of ec6e509a0bb6b0f6117ebc3950247c6e16c90e79
diff --git a/hw/phb4.c b/hw/phb4.c index e929b1504e31..8cfe61e9ffea 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2432,7 +2432,7 @@ struct pci_card_id { uint16_t device; }; -struct pci_card_id retry_whitelist[] = { +static struct pci_card_id retry_whitelist[] = { { 0x1000, 0x005d }, /* LSI Logic MegaRAID SAS-3 3108 */ { 0x1000, 0x00c9 }, /* LSI MPT SAS-3 */ { 0x104c, 0x8241 }, /* TI xHCI USB */
Silences sparse warning: hw/phb4.c:XX:20: warning: symbol 'retry_whitelist' was not declared. Should it be static? Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> --- hw/phb4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)