Commit 9dd3c797 authored by Iyappan Subramanian's avatar Iyappan Subramanian Committed by David S. Miller

drivers: net: xgene: fix kbuild warnings

Fixed the following kbuild warnings:
1. unused variable 'of_id'
2. buffer overflow 'ring_cfg' 5 <= 5
Signed-off-by: default avatarIyappan Subramanian <isubramanian@apm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 327941f8
...@@ -1173,7 +1173,9 @@ static int xgene_enet_probe(struct platform_device *pdev) ...@@ -1173,7 +1173,9 @@ static int xgene_enet_probe(struct platform_device *pdev)
struct xgene_enet_pdata *pdata; struct xgene_enet_pdata *pdata;
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct xgene_mac_ops *mac_ops; struct xgene_mac_ops *mac_ops;
#ifdef CONFIG_OF
const struct of_device_id *of_id; const struct of_device_id *of_id;
#endif
int ret; int ret;
ndev = alloc_etherdev(sizeof(struct xgene_enet_pdata)); ndev = alloc_etherdev(sizeof(struct xgene_enet_pdata));
......
...@@ -83,7 +83,7 @@ struct xgene_enet_desc_ring { ...@@ -83,7 +83,7 @@ struct xgene_enet_desc_ring {
u16 irq; u16 irq;
char irq_name[IRQ_ID_SIZE]; char irq_name[IRQ_ID_SIZE];
u32 size; u32 size;
u32 state[NUM_RING_CONFIG]; u32 state[X2_NUM_RING_CONFIG];
void __iomem *cmd_base; void __iomem *cmd_base;
void __iomem *cmd; void __iomem *cmd;
dma_addr_t dma; dma_addr_t dma;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment