diff mbox series

phb4: make retry_whitelist static

Message ID 20170928064015.9583-1-stewart@linux.vnet.ibm.com
State Accepted
Headers show
Series phb4: make retry_whitelist static | expand

Commit Message

Stewart Smith Sept. 28, 2017, 6:40 a.m. UTC
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(-)

Comments

Stewart Smith Oct. 5, 2017, 7:05 a.m. UTC | #1
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 mbox series

Patch

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 */