aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2009-01-06 13:47:44 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-06 13:47:44 -0500
commitff5bfc3584efdadf826a21bc76ef42bdfcf3f612 (patch)
tree3675ca1b5367ad297ce98a51ef8b267741c0b6dd /drivers/net/ibmveth.c
parent8be35bdeb2969b6dcb9a2e4f756e193325c4db33 (diff)
ibmveth: use consistent types
These variables are only used with an interface that just dumps their values into registers to be passed to the hypervisor. The arguments to that interface are declared to be "unsigned long", so make these variables match. The macros are only used with these variables, so make them match as well. This code is currently only built for 64bit powerpc, so the transformation is really a noop. If the interface was ever ported to 32 bit, it would almost certainly still use registers to pass the parameters and so "unsigned long" would still be appropriate. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index 9bc0f178f24b..ca3bb9f7321b 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -754,7 +754,7 @@ static int ibmveth_set_csum_offload(struct net_device *dev, u32 data,
754 void (*done) (struct net_device *, u32)) 754 void (*done) (struct net_device *, u32))
755{ 755{
756 struct ibmveth_adapter *adapter = netdev_priv(dev); 756 struct ibmveth_adapter *adapter = netdev_priv(dev);
757 u64 set_attr, clr_attr, ret_attr; 757 unsigned long set_attr, clr_attr, ret_attr;
758 long ret; 758 long ret;
759 int rc1 = 0, rc2 = 0; 759 int rc1 = 0, rc2 = 0;
760 int restart = 0; 760 int restart = 0;
@@ -1209,7 +1209,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
1209 long ret; 1209 long ret;
1210 struct net_device *netdev; 1210 struct net_device *netdev;
1211 struct ibmveth_adapter *adapter; 1211 struct ibmveth_adapter *adapter;
1212 u64 set_attr, ret_attr; 1212 unsigned long set_attr, ret_attr;
1213 1213
1214 unsigned char *mac_addr_p; 1214 unsigned char *mac_addr_p;
1215 unsigned int *mcastFilterSize_p; 1215 unsigned int *mcastFilterSize_p;