Skip to content

Commit ff5bfc3

Browse files
sfrothwelldavem330
authored andcommitted
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>
1 parent 8be35bd commit ff5bfc3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/net/ibmveth.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static int ibmveth_set_csum_offload(struct net_device *dev, u32 data,
754754
void (*done) (struct net_device *, u32))
755755
{
756756
struct ibmveth_adapter *adapter = netdev_priv(dev);
757-
u64 set_attr, clr_attr, ret_attr;
757+
unsigned long set_attr, clr_attr, ret_attr;
758758
long ret;
759759
int rc1 = 0, rc2 = 0;
760760
int restart = 0;
@@ -1209,7 +1209,7 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_
12091209
long ret;
12101210
struct net_device *netdev;
12111211
struct ibmveth_adapter *adapter;
1212-
u64 set_attr, ret_attr;
1212+
unsigned long set_attr, ret_attr;
12131213

12141214
unsigned char *mac_addr_p;
12151215
unsigned int *mcastFilterSize_p;

‎drivers/net/ibmveth.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
#define IbmVethMcastRemoveFilter 0x2UL
4040
#define IbmVethMcastClearFilterTable 0x3UL
4141

42-
#define IBMVETH_ILLAN_PADDED_PKT_CSUM 0x0000000000002000ULL
43-
#define IBMVETH_ILLAN_TRUNK_PRI_MASK 0x0000000000000F00ULL
44-
#define IBMVETH_ILLAN_IPV6_TCP_CSUM 0x0000000000000004ULL
45-
#define IBMVETH_ILLAN_IPV4_TCP_CSUM 0x0000000000000002ULL
46-
#define IBMVETH_ILLAN_ACTIVE_TRUNK 0x0000000000000001ULL
42+
#define IBMVETH_ILLAN_PADDED_PKT_CSUM 0x0000000000002000UL
43+
#define IBMVETH_ILLAN_TRUNK_PRI_MASK 0x0000000000000F00UL
44+
#define IBMVETH_ILLAN_IPV6_TCP_CSUM 0x0000000000000004UL
45+
#define IBMVETH_ILLAN_IPV4_TCP_CSUM 0x0000000000000002UL
46+
#define IBMVETH_ILLAN_ACTIVE_TRUNK 0x0000000000000001UL
4747

4848
/* hcall macros */
4949
#define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \

0 commit comments

Comments
 (0)