netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix warnings in hp100
@ 2003-10-07 17:54 Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2003-10-07 17:54 UTC (permalink / raw)
  To: jgarzik, netdev


Fix some harmless integer/pointer size mismatch warnings in hp100.c
on 64bit compiles

diff -u linux-2.5-cleanup/drivers/net/hp100.c-o linux-2.5-cleanup/drivers/net/hp100.c
--- linux-2.5-cleanup/drivers/net/hp100.c-o	2003-09-23 07:28:00.000000000 +0200
+++ linux-2.5-cleanup/drivers/net/hp100.c	2003-12-02 17:12:03.343110768 +0100
@@ -1265,9 +1265,9 @@
 {
 	/* pdlptr is starting address for this pdl */
 
-	if (0 != (((unsigned) pdlptr) & 0xf))
-		printk("hp100: %s: Init rxpdl: Unaligned pdlptr 0x%x.\n",
-		       dev->name, (unsigned) pdlptr);
+	if (0 != (((unsigned long) pdlptr) & 0xf))
+		printk("hp100: %s: Init rxpdl: Unaligned pdlptr 0x%lx.\n",
+		       dev->name, (unsigned long) pdlptr);
 
 	ringptr->pdl = pdlptr + 1;
 	ringptr->pdl_paddr = virt_to_whatever(dev, pdlptr + 1);
@@ -1292,8 +1292,8 @@
 			    register hp100_ring_t * ringptr,
 			    register u32 * pdlptr)
 {
-	if (0 != (((unsigned) pdlptr) & 0xf))
-		printk("hp100: %s: Init txpdl: Unaligned pdlptr 0x%x.\n", dev->name, (unsigned) pdlptr);
+	if (0 != (((unsigned long) pdlptr) & 0xf))
+		printk("hp100: %s: Init txpdl: Unaligned pdlptr 0x%lx.\n", dev->name, (unsigned long) pdlptr);
 
 	ringptr->pdl = pdlptr;	/* +1; */
 	ringptr->pdl_paddr = virt_to_whatever(dev, pdlptr);	/* +1 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-07 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 17:54 [PATCH] Fix warnings in hp100 Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).