Skip to contentSkip to conversation

zoran: match parameter signedness of g_input_status

PATCH New Németh Márton 1 participant 1 message Jan 23, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zoran: match parameter signedness of g_input_status

From: Márton Németh <[email protected]>

The second parameter of g_input_status operation in <media/v4l2-subdev.h> is unsigned so also call it with unsigned paramter.

This will remove the following sparse warning (see "make C=1"):
* incorrect type in argument 2 (different signedness) expected unsigned int [usertype] *status
got int *<noident>

---

linux/drivers/media/video/zoran/zoran_device.c +2 -1
diff -r 2a50a0a1c951 linux/drivers/media/video/zoran/zoran_device.c
@@ -1197,7 +1197,8 @@
 static void zoran_restart(struct zoran *zr)
 {
 	/* Now the stat_comm buffer is ready for restart */
-	int status = 0, mode;
+	unsigned int status = 0;
+	int mode;
 
 	if (zr->codec_mode == BUZ_MODE_MOTION_COMPRESS) {
 		decoder_call(zr, video, g_input_status, &status);
linux/drivers/media/video/zoran/zoran_driver.c +1 -1
diff -r 2a50a0a1c951 linux/drivers/media/video/zoran/zoran_driver.c
@@ -1452,7 +1452,7 @@
 	}
 
 	if (norm == V4L2_STD_ALL) {
-		int status = 0;
+		unsigned int status = 0;
 		v4l2_std_id std = 0;
 
 		decoder_call(zr, video, querystd, &std);