diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-04-16 23:12:55 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:01:05 -0400 |
commit | 493a684ab8af36173e54ee9a102ed1768991f78a (patch) | |
tree | e4e27a4683fe216b58917fffe9d45290abca7b7f /drivers | |
parent | c2bcf00b437805b3c13374a4c4c8b6af646bdc2f (diff) |
Fix sparse errors in drivers/net/ibmveth.c
drivers/net/ibmveth.c:96:46: error: marked inline, but without a definition
drivers/net/ibmveth.c:96: warning: 'ibmveth_rxq_harvest_buffer' declared inline after being called
drivers/net/ibmveth.c:96: warning: previous declaration of 'ibmveth_rxq_harvest_buffer' was here
Just let the compiler decide, as it happens gcc 4.~ inlines it anyway.
drivers/net/ibmveth.c:957:71: warning: Using plain integer as NULL pointer
drivers/net/ibmveth.c:964:85: warning: Using plain integer as NULL pointer
Split the long lines as well, ugly, but < 80 columns.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ibmveth.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 0573fcfcb2c4..3bec0f733f01 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -93,7 +93,7 @@ static void ibmveth_proc_unregister_driver(void); | |||
93 | static void ibmveth_proc_register_adapter(struct ibmveth_adapter *adapter); | 93 | static void ibmveth_proc_register_adapter(struct ibmveth_adapter *adapter); |
94 | static void ibmveth_proc_unregister_adapter(struct ibmveth_adapter *adapter); | 94 | static void ibmveth_proc_unregister_adapter(struct ibmveth_adapter *adapter); |
95 | static irqreturn_t ibmveth_interrupt(int irq, void *dev_instance); | 95 | static irqreturn_t ibmveth_interrupt(int irq, void *dev_instance); |
96 | static inline void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter); | 96 | static void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter); |
97 | static struct kobj_type ktype_veth_pool; | 97 | static struct kobj_type ktype_veth_pool; |
98 | 98 | ||
99 | #ifdef CONFIG_PROC_FS | 99 | #ifdef CONFIG_PROC_FS |
@@ -389,7 +389,7 @@ static void ibmveth_rxq_recycle_buffer(struct ibmveth_adapter *adapter) | |||
389 | } | 389 | } |
390 | } | 390 | } |
391 | 391 | ||
392 | static inline void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter) | 392 | static void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter) |
393 | { | 393 | { |
394 | ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator); | 394 | ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator); |
395 | 395 | ||
@@ -953,14 +953,16 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_ | |||
953 | ibmveth_debug_printk_no_adapter("entering ibmveth_probe for UA 0x%x\n", | 953 | ibmveth_debug_printk_no_adapter("entering ibmveth_probe for UA 0x%x\n", |
954 | dev->unit_address); | 954 | dev->unit_address); |
955 | 955 | ||
956 | mac_addr_p = (unsigned char *) vio_get_attribute(dev, VETH_MAC_ADDR, 0); | 956 | mac_addr_p = (unsigned char *) vio_get_attribute(dev, |
957 | VETH_MAC_ADDR, NULL); | ||
957 | if(!mac_addr_p) { | 958 | if(!mac_addr_p) { |
958 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find VETH_MAC_ADDR " | 959 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find VETH_MAC_ADDR " |
959 | "attribute\n", __FILE__, __LINE__); | 960 | "attribute\n", __FILE__, __LINE__); |
960 | return 0; | 961 | return 0; |
961 | } | 962 | } |
962 | 963 | ||
963 | mcastFilterSize_p= (unsigned int *) vio_get_attribute(dev, VETH_MCAST_FILTER_SIZE, 0); | 964 | mcastFilterSize_p = (unsigned int *) vio_get_attribute(dev, |
965 | VETH_MCAST_FILTER_SIZE, NULL); | ||
964 | if(!mcastFilterSize_p) { | 966 | if(!mcastFilterSize_p) { |
965 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find " | 967 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find " |
966 | "VETH_MCAST_FILTER_SIZE attribute\n", | 968 | "VETH_MCAST_FILTER_SIZE attribute\n", |