public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch][SIS USB2VGA] Warning fix
@ 2007-05-03  5:34 WANG Cong
  2007-05-03  5:48 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: WANG Cong @ 2007-05-03  5:34 UTC (permalink / raw)
  To: thomas, akpm; +Cc: LKML, Wang Ya-gang, Chen Li-jun


Fix this warning:
drivers/usb/misc/sisusbvga/sisusb_con.c:1436: warning: initialization from incompatible pointer type


Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
---

Compiling test past.;)


--- linux-2.6.21-rc7-mm2/drivers/usb/misc/sisusbvga/sisusb_con.c.orig	2007-05-03 02:51:06.000000000 +0800
+++ linux-2.6.21-rc7-mm2/drivers/usb/misc/sisusbvga/sisusb_con.c	2007-05-03 02:57:08.000000000 +0800
@@ -321,9 +321,10 @@ sisusbcon_deinit(struct vc_data *c)
 /* interface routine */
 static u8
 sisusbcon_build_attr(struct vc_data *c, u8 color, u8 intensity,
-			    u8 blink, u8 underline, u8 reverse)
+			    u8 blink, u8 underline, u8 reverse, u8 unused)
 {
 	u8 attr = color;
+	(void) unused;
 
 	if (underline)
 		attr = (attr & 0xf0) | c->vc_ulcolor;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-03  5:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03  5:34 [Patch][SIS USB2VGA] Warning fix WANG Cong
2007-05-03  5:48 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox