aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/hp/sim/simeth.c4
-rw-r--r--arch/um/drivers/net_kern.c2
-rw-r--r--arch/xtensa/platform-iss/network.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c
index b5195be62818..e1a1b11473e2 100644
--- a/arch/ia64/hp/sim/simeth.c
+++ b/arch/ia64/hp/sim/simeth.c
@@ -320,7 +320,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
320 } 320 }
321 321
322 printk(KERN_INFO "simeth_device_event: %s ipaddr=0x%x\n", 322 printk(KERN_INFO "simeth_device_event: %s ipaddr=0x%x\n",
323 dev->name, htonl(ifa->ifa_local)); 323 dev->name, ntohl(ifa->ifa_local));
324 324
325 /* 325 /*
326 * XXX Fix me 326 * XXX Fix me
@@ -331,7 +331,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
331 local = dev->priv; 331 local = dev->priv;
332 /* now do it for real */ 332 /* now do it for real */
333 r = event == NETDEV_UP ? 333 r = event == NETDEV_UP ?
334 netdev_attach(local->simfd, dev->irq, htonl(ifa->ifa_local)): 334 netdev_attach(local->simfd, dev->irq, ntohl(ifa->ifa_local)):
335 netdev_detach(local->simfd); 335 netdev_detach(local->simfd);
336 336
337 printk(KERN_INFO "simeth: netdev_attach/detach: event=%s ->%d\n", 337 printk(KERN_INFO "simeth: netdev_attach/detach: event=%s ->%d\n",
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c
index 664c2e2fb820..bd1178fa4e9a 100644
--- a/arch/um/drivers/net_kern.c
+++ b/arch/um/drivers/net_kern.c
@@ -825,7 +825,7 @@ int dev_netmask(void *d, void *m)
825 struct net_device *dev = d; 825 struct net_device *dev = d;
826 struct in_device *ip = dev->ip_ptr; 826 struct in_device *ip = dev->ip_ptr;
827 struct in_ifaddr *in; 827 struct in_ifaddr *in;
828 __u32 *mask_out = m; 828 __be32 *mask_out = m;
829 829
830 if(ip == NULL) 830 if(ip == NULL)
831 return(1); 831 return(1);
diff --git a/arch/xtensa/platform-iss/network.c b/arch/xtensa/platform-iss/network.c
index d96164e602fe..15d64414bd60 100644
--- a/arch/xtensa/platform-iss/network.c
+++ b/arch/xtensa/platform-iss/network.c
@@ -201,7 +201,7 @@ static void dev_ip_addr(void *d, char *buf, char *bin_buf)
201 struct net_device *dev = d; 201 struct net_device *dev = d;
202 struct in_device *ip = dev->ip_ptr; 202 struct in_device *ip = dev->ip_ptr;
203 struct in_ifaddr *in; 203 struct in_ifaddr *in;
204 u32 addr; 204 __be32 addr;
205 205
206 if ((ip == NULL) || ((in = ip->ifa_list) == NULL)) { 206 if ((ip == NULL) || ((in = ip->ifa_list) == NULL)) {
207 printk(KERN_WARNING "Device not assigned an IP address!\n"); 207 printk(KERN_WARNING "Device not assigned an IP address!\n");