sisusb_con warning fixes

x86_64:

drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_putc':
drivers/usb/misc/sisusbvga/sisusb_con.c:405: warning: cast from pointer to integer of different size
drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_putcs':
drivers/usb/misc/sisusbvga/sisusb_con.c:440: warning: cast from pointer to integer of different size
drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_clear':
drivers/usb/misc/sisusbvga/sisusb_con.c:494: warning: cast from pointer to integer of different size
drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_bmove':
drivers/usb/misc/sisusbvga/sisusb_con.c:566: warning: cast from pointer to integer of different size
drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_switch':
drivers/usb/misc/sisusbvga/sisusb_con.c:614: warning: cast from pointer to integer of different size
drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_scroll_area':
drivers/usb/misc/sisusbvga/sisusb_con.c:941: warning: cast from pointer to integer of different size

Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Andrew Morton 2007-01-03 16:45:21 -08:00 committed by Greg Kroah-Hartman
parent c07be136a8
commit c067dfc650

View file

@ -403,7 +403,7 @@ sisusbcon_putc(struct vc_data *c, int ch, int y, int x)
sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(x, y), sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(x, y),
(u32)SISUSB_HADDR(x, y), 2, &written); (long)SISUSB_HADDR(x, y), 2, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
} }
@ -438,7 +438,7 @@ sisusbcon_putcs(struct vc_data *c, const unsigned short *s,
} }
sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(x, y), sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(x, y),
(u32)SISUSB_HADDR(x, y), count * 2, &written); (long)SISUSB_HADDR(x, y), count * 2, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
} }
@ -492,7 +492,7 @@ sisusbcon_clear(struct vc_data *c, int y, int x, int height, int width)
sisusb_copy_memory(sisusb, (unsigned char *)SISUSB_VADDR(x, y), sisusb_copy_memory(sisusb, (unsigned char *)SISUSB_VADDR(x, y),
(u32)SISUSB_HADDR(x, y), length, &written); (long)SISUSB_HADDR(x, y), length, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
} }
@ -564,7 +564,7 @@ sisusbcon_bmove(struct vc_data *c, int sy, int sx,
sisusb_copy_memory(sisusb, (unsigned char *)SISUSB_VADDR(dx, dy), sisusb_copy_memory(sisusb, (unsigned char *)SISUSB_VADDR(dx, dy),
(u32)SISUSB_HADDR(dx, dy), length, &written); (long)SISUSB_HADDR(dx, dy), length, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
} }
@ -612,7 +612,7 @@ sisusbcon_switch(struct vc_data *c)
length); length);
sisusb_copy_memory(sisusb, (unsigned char *)c->vc_origin, sisusb_copy_memory(sisusb, (unsigned char *)c->vc_origin,
(u32)SISUSB_HADDR(0, 0), (long)SISUSB_HADDR(0, 0),
length, &written); length, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);
@ -939,7 +939,7 @@ sisusbcon_scroll_area(struct vc_data *c, struct sisusb_usb_data *sisusb,
} }
sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(0, t), sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(0, t),
(u32)SISUSB_HADDR(0, t), length, &written); (long)SISUSB_HADDR(0, t), length, &written);
mutex_unlock(&sisusb->lock); mutex_unlock(&sisusb->lock);